Class DescendantNodeIterable

  • All Implemented Interfaces:
    com.vladsch.flexmark.util.collection.iteration.ReversibleIterable<Node>, com.vladsch.flexmark.util.collection.iteration.ReversiblePeekingIterable<Node>, Iterable<Node>

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

      • DescendantNodeIterable

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

      • iterator

        @NotNull
        public @NotNull com.vladsch.flexmark.util.collection.iteration.ReversiblePeekingIterator<Node> iterator()
        Specified by:
        iterator in interface Iterable<Node>
        Specified by:
        iterator in interface com.vladsch.flexmark.util.collection.iteration.ReversibleIterable<Node>
        Specified by:
        iterator in interface com.vladsch.flexmark.util.collection.iteration.ReversiblePeekingIterable<Node>
      • reversed

        @NotNull
        public @NotNull com.vladsch.flexmark.util.collection.iteration.ReversiblePeekingIterable<Node> reversed()
        Specified by:
        reversed in interface com.vladsch.flexmark.util.collection.iteration.ReversibleIterable<Node>
        Specified by:
        reversed in interface com.vladsch.flexmark.util.collection.iteration.ReversiblePeekingIterable<Node>
      • reversedIterator

        @NotNull
        public @NotNull com.vladsch.flexmark.util.collection.iteration.ReversiblePeekingIterator<Node> reversedIterator()
        Specified by:
        reversedIterator in interface com.vladsch.flexmark.util.collection.iteration.ReversibleIterable<Node>
        Specified by:
        reversedIterator in interface com.vladsch.flexmark.util.collection.iteration.ReversiblePeekingIterable<Node>
      • isReversed

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