Class TreeIterator<N>
java.lang.Object
com.vladsch.flexmark.tree.iteration.TreeIterator<N>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.slf4j.Logger
static final org.slf4j.Logger
static final org.slf4j.Logger
private final IterationConditions
<N> -
Constructor Summary
ConstructorsConstructorDescriptionTreeIterator
(IterationConditions<N> constraints) TreeIterator
(IterationConditions<N> constraints, Predicate<? super N> filter) TreeIterator
(IterationConditions<N> constraints, Predicate<? super N> filter, Predicate<? super N> recursion) -
Method Summary
Modifier and TypeMethodDescription@NotNull TreeIterator
<N> aborted()
<T,
R> void doLoop
(N element, @NotNull ValueIterationAdapter<? super N, T> adapter, @NotNull VoidIterationConsumer<? super T> consumer) void
doLoop
(N element, @NotNull VoidIterationConsumer<? super N> consumer) <T,
R> R doLoop
(N element, R defaultValue, @NotNull ValueIterationAdapter<? super N, T> adapter, @NotNull ValueIterationConsumer<? super T, R> consumer) <R> R
doLoop
(N element, R defaultValue, @NotNull ValueIterationConsumer<? super N, R> consumer) static <N> @NotNull Predicate
<N> FALSE()
@NotNull TreeIterator
<N> <F> @NotNull TreeIterator
<N> @NotNull TreeIterator
<N> @NotNull TreeIterator
<N> <F> @NotNull TreeIterator
<N> @NotNull TreeIterator
<N> @NotNull IterationConditions
<N> getPredicate
(@NotNull Class<? super N> clazz) getPredicate
(@NotNull Class<F> clazz, @NotNull Predicate<? super F> predicate) <T,
R> VoidIteration iterate
(N element, @NotNull ValueIterationAdapter<? super N, T> adapter, @NotNull VoidIterationConsumer<? super T> consumer) <R> VoidIteration
iterate
(N element, @NotNull VoidIterationConsumer<? super N> consumer) <T,
R> ValueIteration <R> iterate
(N element, R defaultValue, @NotNull ValueIterationAdapter<? super N, T> adapter, @NotNull ValueIterationConsumer<? super T, R> consumer) <R> ValueIteration
<R> iterate
(N element, R defaultValue, @NotNull ValueIterationConsumer<? super N, R> consumer) @NotNull TreeIterator
<N> modifiedCopy
(@NotNull IterationConditions<N> constraints, @NotNull Predicate<? super N> filter, @NotNull Predicate<? super N> recursion) @NotNull TreeIterator
<N> @NotNull TreeIterator
<N> <F> @NotNull TreeIterator
<N> @NotNull TreeIterator
<N> static <N> @NotNull TreeIterator
<N> of
(@NotNull IterationConditions<N> constraints) static <N> @NotNull TreeIterator
<N> of
(@NotNull IterationConditions<N> constraints, @NotNull Predicate<? super N> filter) static <N> @NotNull TreeIterator
<N> of
(@NotNull IterationConditions<N> constraints, @NotNull Predicate<? super N> filter, @NotNull Predicate<? super N> recursion) @NotNull TreeIterator
<N> <F> @NotNull TreeIterator
<N> @NotNull TreeIterator
<N> @NotNull TreeIterator
<N> @NotNull TreeIterator
<N> reversed()
static <N> @NotNull Predicate
<N> TRUE()
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG -
LOG_INFO
public static final org.slf4j.Logger LOG_INFO -
LOG_TRACE
public static final org.slf4j.Logger LOG_TRACE -
TRUE
-
FALSE
-
NOT_NULL
-
myConstraints
-
myRecursion
-
myFilter
-
-
Constructor Details
-
TreeIterator
-
TreeIterator
-
TreeIterator
-
-
Method Details
-
getPredicate
-
getPredicate
-
getConstraints
-
getRecursion
-
getFilter
-
modifiedCopy
@NotNull public @NotNull TreeIterator<N> modifiedCopy(@NotNull @NotNull IterationConditions<N> constraints, @NotNull @NotNull Predicate<? super N> filter, @NotNull @NotNull Predicate<? super N> recursion) -
reversed
-
recursive
-
nonRecursive
-
recurse
-
recurse
-
recurse
@NotNull public <F> @NotNull TreeIterator<N> recurse(@NotNull @NotNull Class<F> clazz, @NotNull @NotNull Predicate<? super F> predicate) -
noRecurse
@NotNull public @NotNull TreeIterator<N> noRecurse(@NotNull @NotNull Predicate<? super N> predicate) -
noRecurse
-
noRecurse
@NotNull public <F> @NotNull TreeIterator<N> noRecurse(@NotNull @NotNull Class<F> clazz, @NotNull @NotNull Predicate<? super F> predicate) -
aborted
-
filterOut
@NotNull public @NotNull TreeIterator<N> filterOut(@NotNull @NotNull Predicate<? super N> predicate) -
filterOut
-
filterOut
@NotNull public <F> @NotNull TreeIterator<N> filterOut(@NotNull @NotNull Class<F> clazz, @NotNull @NotNull Predicate<? super F> predicate) -
filter
-
filter
-
filter
@NotNull public <F> @NotNull TreeIterator<N> filter(@NotNull @NotNull Class<F> clazz, @NotNull @NotNull Predicate<? super F> predicate) -
of
@NotNull public static <N> @NotNull TreeIterator<N> of(@NotNull @NotNull IterationConditions<N> constraints) -
of
@NotNull public static <N> @NotNull TreeIterator<N> of(@NotNull @NotNull IterationConditions<N> constraints, @NotNull @NotNull Predicate<? super N> filter) -
of
@NotNull public static <N> @NotNull TreeIterator<N> of(@NotNull @NotNull IterationConditions<N> constraints, @NotNull @NotNull Predicate<? super N> filter, @NotNull @NotNull Predicate<? super N> recursion) -
TRUE
-
FALSE
-
iterate
public <R> ValueIteration<R> iterate(@NotNull N element, @NotNull R defaultValue, @NotNull @NotNull ValueIterationConsumer<? super N, R> consumer) -
iterate
public <T,R> ValueIteration<R> iterate(@NotNull N element, @NotNull R defaultValue, @NotNull @NotNull ValueIterationAdapter<? super N, T> adapter, @NotNull @NotNull ValueIterationConsumer<? super T, R> consumer) -
iterate
public <R> VoidIteration iterate(@NotNull N element, @NotNull @NotNull VoidIterationConsumer<? super N> consumer) -
iterate
public <T,R> VoidIteration iterate(@NotNull N element, @NotNull @NotNull ValueIterationAdapter<? super N, T> adapter, @NotNull @NotNull VoidIterationConsumer<? super T> consumer) -
doLoop
@NotNull public <R> R doLoop(@NotNull N element, @NotNull R defaultValue, @NotNull @NotNull ValueIterationConsumer<? super N, R> consumer) -
doLoop
-
doLoop
@NotNull public <T,R> R doLoop(@NotNull N element, @NotNull R defaultValue, @NotNull @NotNull ValueIterationAdapter<? super N, T> adapter, @NotNull @NotNull ValueIterationConsumer<? super T, R> consumer) -
doLoop
public <T,R> void doLoop(@NotNull N element, @NotNull @NotNull ValueIterationAdapter<? super N, T> adapter, @NotNull @NotNull VoidIterationConsumer<? super T> consumer)
-