Class DescendantsTreeIterator

  • All Implemented Interfaces:
    Iterator<SNode>, TreeIterator<SNode>

    public final class DescendantsTreeIterator
    extends Object
    implements TreeIterator<SNode>
    Iterator for a SNode sub-tree.

    Pre-order traversal, parent node is visited prior to any of its children, no sibling is visited prior to all children of its predecessor.

    Iterator gives control over sub-tree iteration with skipChildren() method to completely skip processing of a sub-tree rooted at latest node returned from next().

    At the moment, iterator doesn't support deletions.