Class MappedIterator<B,T extends B>
- java.lang.Object
-
- com.vladsch.flexmark.tree.iteration.MappedIterator<B,T>
-
- Direct Known Subclasses:
NodeIterator
public class MappedIterator<B,T extends B> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected @NotNull ValueIterationAdapter<? super B,T>myAdapterprotected BmyElementprotected @NotNull TreeIterator<B>myTreeIterator
-
Constructor Summary
Constructors Constructor Description MappedIterator(B element, @NotNull ValueIterationAdapter<? super B,T> adapter, @NotNull TreeIterator<B> treeIterator)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull MappedIterator<B,T>aborted()@NotNull MappedIterator<B,T>acceptFilter(@NotNull ValueIterationFilter<? super T> filter)<F extends B>
@NotNull MappedIterator<B,F>adapt(@NotNull ValueIterationAdapter<? super T,F> adapter)<F extends B>
@NotNull MappedIterator<B,F>adapt(@NotNull Function<? super T,F> adapter)static <N> MappedIterator<N,N>create(N element, @NotNull TreeIterator<N> treeIterator)voiddoLoop(@NotNull VoidIterationConsumer<? super T> consumer)<R> RdoLoop(R defaultValue, @NotNull ValueIterationConsumer<? super T,R> consumer)<F extends B>
@NotNull MappedIterator<B,F>filter(@NotNull Class<F> clazz)<F extends B>
@NotNull MappedIterator<B,F>filter(@NotNull Class<F> clazz, @NotNull Predicate<? super F> predicate)@NotNull MappedIterator<B,T>filter(@NotNull Predicate<? super B> predicate)@NotNull MappedIterator<B,T>filterFalse()@NotNull MappedIterator<B,T>filterOut(@NotNull Class<? super B> clazz)<F extends B>
@NotNull MappedIterator<B,T>filterOut(@NotNull Class<F> clazz, @NotNull Predicate<? super F> predicate)@NotNull MappedIterator<B,T>filterOut(@NotNull Predicate<? super B> predicate)@NotNull MappedIterator<B,T>getModifiedCopy(B element, ValueIterationAdapter<? super B,T> adapter, TreeIterator<B> treeIterator)<F extends B>
@NotNull MappedIterator<B,F>getModifiedCopyF(B element, ValueIterationAdapter<? super B,F> adapter, TreeIterator<B> treeIterator)@NotNull TreeIterator<B>getTreeIterator()@NotNull MappedIterator<B,T>nonRecursive()@NotNull MappedIterator<B,T>nonRecursive(boolean nonRecursive)@NotNull MappedIterator<B,T>noRecurse(@NotNull Class<? super B> clazz)<F extends B>
@NotNull MappedIterator<B,T>noRecurse(@NotNull Class<F> clazz, @NotNull Predicate<? super F> predicate)@NotNull MappedIterator<B,T>noRecurse(@NotNull Predicate<? super B> predicate)@NotNull MappedIterator<B,T>recurse(@NotNull Class<? super B> clazz)<F extends B>
@NotNull MappedIterator<B,T>recurse(@NotNull Class<F> clazz, @NotNull Predicate<? super F> predicate)@NotNull MappedIterator<B,T>recurse(@NotNull Predicate<? super B> predicate)@NotNull MappedIterator<B,T>recursive()@NotNull MappedIterator<B,T>recursive(boolean recursive)@NotNull MappedIterator<B,T>reversed()@NotNull MappedIterator<Object,B>toObjectMapped(Class<B> clazz)
-
-
-
Field Detail
-
myElement
@NotNull protected final B myElement
-
myAdapter
@NotNull protected final @NotNull ValueIterationAdapter<? super B,T extends B> myAdapter
-
myTreeIterator
@NotNull protected final @NotNull TreeIterator<B> myTreeIterator
-
-
Constructor Detail
-
MappedIterator
public MappedIterator(@NotNull B element, @NotNull @NotNull ValueIterationAdapter<? super B,T> adapter, @NotNull @NotNull TreeIterator<B> treeIterator)
-
-
Method Detail
-
getTreeIterator
@NotNull public final @NotNull TreeIterator<B> getTreeIterator()
-
doLoop
@NotNull public final <R> R doLoop(@NotNull R defaultValue, @NotNull @NotNull ValueIterationConsumer<? super T,R> consumer)
-
doLoop
public final void doLoop(@NotNull @NotNull VoidIterationConsumer<? super T> consumer)
-
getModifiedCopy
@NotNull public @NotNull MappedIterator<B,T> getModifiedCopy(B element, ValueIterationAdapter<? super B,T> adapter, TreeIterator<B> treeIterator)
-
getModifiedCopyF
@NotNull public <F extends B> @NotNull MappedIterator<B,F> getModifiedCopyF(B element, ValueIterationAdapter<? super B,F> adapter, TreeIterator<B> treeIterator)
-
reversed
@NotNull public @NotNull MappedIterator<B,T> reversed()
-
recursive
@NotNull public @NotNull MappedIterator<B,T> recursive()
-
nonRecursive
@NotNull public @NotNull MappedIterator<B,T> nonRecursive()
-
recursive
@NotNull public @NotNull MappedIterator<B,T> recursive(boolean recursive)
-
nonRecursive
@NotNull public @NotNull MappedIterator<B,T> nonRecursive(boolean nonRecursive)
-
recurse
@NotNull public @NotNull MappedIterator<B,T> recurse(@NotNull @NotNull Predicate<? super B> predicate)
-
recurse
@NotNull public @NotNull MappedIterator<B,T> recurse(@NotNull @NotNull Class<? super B> clazz)
-
recurse
@NotNull public <F extends B> @NotNull MappedIterator<B,T> recurse(@NotNull @NotNull Class<F> clazz, @NotNull @NotNull Predicate<? super F> predicate)
-
noRecurse
@NotNull public @NotNull MappedIterator<B,T> noRecurse(@NotNull @NotNull Predicate<? super B> predicate)
-
noRecurse
@NotNull public @NotNull MappedIterator<B,T> noRecurse(@NotNull @NotNull Class<? super B> clazz)
-
noRecurse
@NotNull public <F extends B> @NotNull MappedIterator<B,T> noRecurse(@NotNull @NotNull Class<F> clazz, @NotNull @NotNull Predicate<? super F> predicate)
-
filterFalse
@NotNull public @NotNull MappedIterator<B,T> filterFalse()
-
aborted
@NotNull public @NotNull MappedIterator<B,T> aborted()
-
filterOut
@NotNull public @NotNull MappedIterator<B,T> filterOut(@NotNull @NotNull Predicate<? super B> predicate)
-
filterOut
@NotNull public @NotNull MappedIterator<B,T> filterOut(@NotNull @NotNull Class<? super B> clazz)
-
filterOut
@NotNull public <F extends B> @NotNull MappedIterator<B,T> filterOut(@NotNull @NotNull Class<F> clazz, @NotNull @NotNull Predicate<? super F> predicate)
-
filter
@NotNull public @NotNull MappedIterator<B,T> filter(@NotNull @NotNull Predicate<? super B> predicate)
-
acceptFilter
@NotNull public @NotNull MappedIterator<B,T> acceptFilter(@NotNull @NotNull ValueIterationFilter<? super T> filter)
-
filter
@NotNull public <F extends B> @NotNull MappedIterator<B,F> filter(@NotNull @NotNull Class<F> clazz)
-
filter
@NotNull public <F extends B> @NotNull MappedIterator<B,F> filter(@NotNull @NotNull Class<F> clazz, @NotNull @NotNull Predicate<? super F> predicate)
-
adapt
@NotNull public <F extends B> @NotNull MappedIterator<B,F> adapt(@NotNull @NotNull Function<? super T,F> adapter)
-
adapt
@NotNull public <F extends B> @NotNull MappedIterator<B,F> adapt(@NotNull @NotNull ValueIterationAdapter<? super T,F> adapter)
-
toObjectMapped
@NotNull public @NotNull MappedIterator<Object,B> toObjectMapped(Class<B> clazz)
-
create
public static <N> MappedIterator<N,N> create(N element, @NotNull @NotNull TreeIterator<N> treeIterator)
-
-