public class DescendantNodeIterator extends Object implements com.vladsch.flexmark.util.collection.iteration.ReversiblePeekingIterator<Node>
| Constructor and Description |
|---|
DescendantNodeIterator(@NotNull com.vladsch.flexmark.util.collection.iteration.ReversiblePeekingIterator<Node> iterator)
iterate nodes, with descendants, depth first until all are done
|
| Modifier and Type | Method and Description |
|---|---|
void |
forEachRemaining(@NotNull Consumer<? super Node> consumer) |
boolean |
hasNext() |
boolean |
isReversed() |
@NotNull Node |
next() |
@Nullable Node |
peek() |
void |
remove() |
public DescendantNodeIterator(@NotNull
@NotNull com.vladsch.flexmark.util.collection.iteration.ReversiblePeekingIterator<Node> iterator)
iterator - iterator to use for iterating nodes and their descendantspublic boolean isReversed()
isReversed in interface com.vladsch.flexmark.util.collection.iteration.ReversibleIterator<Node>@Nullable public @Nullable Node peek()
peek in interface com.vladsch.flexmark.util.collection.iteration.ReversiblePeekingIterator<Node>public void forEachRemaining(@NotNull
@NotNull Consumer<? super Node> consumer)
forEachRemaining in interface Iterator<Node>Copyright © 2020. All rights reserved.