Class NodeIterator<N extends Node>
- java.lang.Object
-
- com.vladsch.flexmark.tree.iteration.MappedIterator<Node,N>
-
- com.vladsch.flexmark.tree.iteration.NodeIterator<N>
-
public class NodeIterator<N extends Node> extends MappedIterator<Node,N>
-
-
Field Summary
-
Fields inherited from class com.vladsch.flexmark.tree.iteration.MappedIterator
myAdapter, myElement, myTreeIterator
-
-
Constructor Summary
Constructors Constructor Description NodeIterator(@NotNull Node element, @NotNull ValueIterationAdapter<? super Node,N> adapter, @NotNull TreeIterator<Node> treeIterator)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull NodeIterator<N>
aborted()
@NotNull NodeIterator<N>
acceptFilter(@NotNull ValueIterationFilter<? super N> filter)
<F extends Node>
@NotNull NodeIterator<F>adapt(@NotNull ValueIterationAdapter<? super N,F> adapter)
<F extends Node>
@NotNull NodeIterator<F>adapt(@NotNull java.util.function.Function<? super N,F> adapter)
<F extends Node>
@NotNull NodeIterator<F>filter(@NotNull java.lang.Class<F> clazz)
<F extends Node>
@NotNull NodeIterator<F>filter(@NotNull java.lang.Class<F> clazz, @NotNull java.util.function.Predicate<? super F> predicate)
@NotNull NodeIterator<N>
filter(@NotNull java.util.function.Predicate<? super Node> predicate)
@NotNull NodeIterator<N>
filter(@NotNull java.util.Set<java.lang.Class<? super Node>> nodeClassSet)
@NotNull NodeIterator<N>
filterFalse()
@NotNull NodeIterator<N>
filterOut(@NotNull java.lang.Class<? super Node> clazz)
<F extends Node>
@NotNull NodeIterator<N>filterOut(@NotNull java.lang.Class<F> clazz, @NotNull java.util.function.Predicate<? super F> predicate)
@NotNull NodeIterator<N>
filterOut(@NotNull java.util.function.Predicate<? super Node> predicate)
@NotNull NodeIterator<N>
filterOut(@NotNull java.util.Set<java.lang.Class<? super Node>> nodeClassSet)
@NotNull NodeIterator<N>
getModifiedCopy(Node element, ValueIterationAdapter<? super Node,N> adapter, TreeIterator<Node> treeIterator)
<F extends Node>
@NotNull NodeIterator<F>getModifiedCopyF(Node element, ValueIterationAdapter<? super Node,F> adapter, TreeIterator<Node> treeIterator)
@NotNull NodeIterator<N>
nonRecursive()
@NotNull NodeIterator<N>
nonRecursive(boolean nonRecursive)
@NotNull NodeIterator<N>
noRecurse(@NotNull java.lang.Class<? super Node> clazz)
<F extends Node>
@NotNull NodeIterator<N>noRecurse(@NotNull java.lang.Class<F> clazz, @NotNull java.util.function.Predicate<? super F> predicate)
@NotNull NodeIterator<N>
noRecurse(@NotNull java.util.function.Predicate<? super Node> predicate)
static NodeIterator<Node>
of(@NotNull Node element, @NotNull IterationConditions<Node> constraints)
static NodeIterator<Node>
of(@NotNull Node element, @NotNull IterationConditions<Node> constraints, @NotNull java.util.function.Predicate<? super Node> filter)
static NodeIterator<Node>
of(@NotNull Node element, @NotNull IterationConditions<Node> constraints, @NotNull java.util.function.Predicate<? super Node> filter, @NotNull java.util.function.Predicate<? super Node> recursion)
static NodeIterator<Node>
of(@NotNull Node element, @NotNull TreeIterator<Node> treeIterator)
@NotNull NodeIterator<N>
recurse(@NotNull java.lang.Class<? super Node> clazz)
<F extends Node>
@NotNull NodeIterator<N>recurse(@NotNull java.lang.Class<F> clazz, @NotNull java.util.function.Predicate<? super F> predicate)
@NotNull NodeIterator<N>
recurse(@NotNull java.util.function.Predicate<? super Node> predicate)
@NotNull NodeIterator<N>
recurse(@NotNull java.util.Set<java.lang.Class<? super Node>> nodeClassSet)
@NotNull NodeIterator<N>
recursive()
@NotNull NodeIterator<N>
recursive(boolean recursive)
@NotNull NodeIterator<N>
reversed()
@NotNull MappedIterator<java.lang.Object,Node>
toNodeObjectMapped()
-
Methods inherited from class com.vladsch.flexmark.tree.iteration.MappedIterator
create, doLoop, doLoop, getTreeIterator, toObjectMapped
-
-
-
-
Constructor Detail
-
NodeIterator
public NodeIterator(@NotNull @NotNull Node element, @NotNull @NotNull ValueIterationAdapter<? super Node,N> adapter, @NotNull @NotNull TreeIterator<Node> treeIterator)
-
-
Method Detail
-
getModifiedCopy
@NotNull public @NotNull NodeIterator<N> getModifiedCopy(Node element, ValueIterationAdapter<? super Node,N> adapter, TreeIterator<Node> treeIterator)
- Overrides:
getModifiedCopy
in classMappedIterator<Node,N extends Node>
-
getModifiedCopyF
@NotNull public <F extends Node> @NotNull NodeIterator<F> getModifiedCopyF(Node element, ValueIterationAdapter<? super Node,F> adapter, TreeIterator<Node> treeIterator)
- Overrides:
getModifiedCopyF
in classMappedIterator<Node,N extends Node>
-
reversed
@NotNull public @NotNull NodeIterator<N> reversed()
- Overrides:
reversed
in classMappedIterator<Node,N extends Node>
-
recursive
@NotNull public @NotNull NodeIterator<N> recursive()
- Overrides:
recursive
in classMappedIterator<Node,N extends Node>
-
nonRecursive
@NotNull public @NotNull NodeIterator<N> nonRecursive()
- Overrides:
nonRecursive
in classMappedIterator<Node,N extends Node>
-
recursive
@NotNull public @NotNull NodeIterator<N> recursive(boolean recursive)
- Overrides:
recursive
in classMappedIterator<Node,N extends Node>
-
nonRecursive
@NotNull public @NotNull NodeIterator<N> nonRecursive(boolean nonRecursive)
- Overrides:
nonRecursive
in classMappedIterator<Node,N extends Node>
-
recurse
@NotNull public @NotNull NodeIterator<N> recurse(@NotNull @NotNull java.util.function.Predicate<? super Node> predicate)
- Overrides:
recurse
in classMappedIterator<Node,N extends Node>
-
recurse
@NotNull public @NotNull NodeIterator<N> recurse(@NotNull @NotNull java.lang.Class<? super Node> clazz)
- Overrides:
recurse
in classMappedIterator<Node,N extends Node>
-
recurse
@NotNull public <F extends Node> @NotNull NodeIterator<N> recurse(@NotNull @NotNull java.lang.Class<F> clazz, @NotNull @NotNull java.util.function.Predicate<? super F> predicate)
- Overrides:
recurse
in classMappedIterator<Node,N extends Node>
-
noRecurse
@NotNull public @NotNull NodeIterator<N> noRecurse(@NotNull @NotNull java.util.function.Predicate<? super Node> predicate)
- Overrides:
noRecurse
in classMappedIterator<Node,N extends Node>
-
noRecurse
@NotNull public @NotNull NodeIterator<N> noRecurse(@NotNull @NotNull java.lang.Class<? super Node> clazz)
- Overrides:
noRecurse
in classMappedIterator<Node,N extends Node>
-
noRecurse
@NotNull public <F extends Node> @NotNull NodeIterator<N> noRecurse(@NotNull @NotNull java.lang.Class<F> clazz, @NotNull @NotNull java.util.function.Predicate<? super F> predicate)
- Overrides:
noRecurse
in classMappedIterator<Node,N extends Node>
-
filterFalse
@NotNull public @NotNull NodeIterator<N> filterFalse()
- Overrides:
filterFalse
in classMappedIterator<Node,N extends Node>
-
aborted
@NotNull public @NotNull NodeIterator<N> aborted()
- Overrides:
aborted
in classMappedIterator<Node,N extends Node>
-
filterOut
@NotNull public @NotNull NodeIterator<N> filterOut(@NotNull @NotNull java.util.function.Predicate<? super Node> predicate)
- Overrides:
filterOut
in classMappedIterator<Node,N extends Node>
-
filterOut
@NotNull public @NotNull NodeIterator<N> filterOut(@NotNull @NotNull java.lang.Class<? super Node> clazz)
- Overrides:
filterOut
in classMappedIterator<Node,N extends Node>
-
filterOut
@NotNull public <F extends Node> @NotNull NodeIterator<N> filterOut(@NotNull @NotNull java.lang.Class<F> clazz, @NotNull @NotNull java.util.function.Predicate<? super F> predicate)
- Overrides:
filterOut
in classMappedIterator<Node,N extends Node>
-
filter
@NotNull public @NotNull NodeIterator<N> filter(@NotNull @NotNull java.util.function.Predicate<? super Node> predicate)
- Overrides:
filter
in classMappedIterator<Node,N extends Node>
-
acceptFilter
@NotNull public @NotNull NodeIterator<N> acceptFilter(@NotNull @NotNull ValueIterationFilter<? super N> filter)
- Overrides:
acceptFilter
in classMappedIterator<Node,N extends Node>
-
filter
@NotNull public <F extends Node> @NotNull NodeIterator<F> filter(@NotNull @NotNull java.lang.Class<F> clazz)
- Overrides:
filter
in classMappedIterator<Node,N extends Node>
-
filter
@NotNull public <F extends Node> @NotNull NodeIterator<F> filter(@NotNull @NotNull java.lang.Class<F> clazz, @NotNull @NotNull java.util.function.Predicate<? super F> predicate)
- Overrides:
filter
in classMappedIterator<Node,N extends Node>
-
adapt
@NotNull public <F extends Node> @NotNull NodeIterator<F> adapt(@NotNull @NotNull java.util.function.Function<? super N,F> adapter)
- Overrides:
adapt
in classMappedIterator<Node,N extends Node>
-
adapt
@NotNull public <F extends Node> @NotNull NodeIterator<F> adapt(@NotNull @NotNull ValueIterationAdapter<? super N,F> adapter)
- Overrides:
adapt
in classMappedIterator<Node,N extends Node>
-
recurse
@NotNull public @NotNull NodeIterator<N> recurse(@NotNull @NotNull java.util.Set<java.lang.Class<? super Node>> nodeClassSet)
-
filterOut
@NotNull public @NotNull NodeIterator<N> filterOut(@NotNull @NotNull java.util.Set<java.lang.Class<? super Node>> nodeClassSet)
-
filter
@NotNull public @NotNull NodeIterator<N> filter(@NotNull @NotNull java.util.Set<java.lang.Class<? super Node>> nodeClassSet)
-
toNodeObjectMapped
@NotNull public @NotNull MappedIterator<java.lang.Object,Node> toNodeObjectMapped()
-
of
public static NodeIterator<Node> of(@NotNull @NotNull Node element, @NotNull @NotNull TreeIterator<Node> treeIterator)
-
of
public static NodeIterator<Node> of(@NotNull @NotNull Node element, @NotNull @NotNull IterationConditions<Node> constraints)
-
of
public static NodeIterator<Node> of(@NotNull @NotNull Node element, @NotNull @NotNull IterationConditions<Node> constraints, @NotNull @NotNull java.util.function.Predicate<? super Node> filter)
-
of
public static NodeIterator<Node> of(@NotNull @NotNull Node element, @NotNull @NotNull IterationConditions<Node> constraints, @NotNull @NotNull java.util.function.Predicate<? super Node> filter, @NotNull @NotNull java.util.function.Predicate<? super Node> recursion)
-
-