Class DescendantNodeIterator

  • All Implemented Interfaces:
    com.vladsch.flexmark.util.collection.iteration.ReversibleIterator<Node>, com.vladsch.flexmark.util.collection.iteration.ReversiblePeekingIterator<Node>, Iterator<Node>

    public class DescendantNodeIterator
    extends Object
    implements com.vladsch.flexmark.util.collection.iteration.ReversiblePeekingIterator<Node>
    • Constructor Detail

      • DescendantNodeIterator

        public DescendantNodeIterator​(@NotNull
                                      @NotNull com.vladsch.flexmark.util.collection.iteration.ReversiblePeekingIterator<Node> iterator)
        iterate nodes, with descendants, depth first until all are done
        Parameters:
        iterator - iterator to use for iterating nodes and their descendants
    • Method Detail

      • isReversed

        public boolean isReversed()
        Specified by:
        isReversed in interface com.vladsch.flexmark.util.collection.iteration.ReversibleIterator<Node>
      • peek

        @Nullable
        public @Nullable Node peek()
        Specified by:
        peek in interface com.vladsch.flexmark.util.collection.iteration.ReversiblePeekingIterator<Node>