Package org.jetbrains.mps.util
Class DescendantsTreeIterator
- java.lang.Object
- 
- org.jetbrains.mps.util.DescendantsTreeIterator
 
- 
- All Implemented Interfaces:
- Iterator<SNode>,- TreeIterator<SNode>
 
 public final class DescendantsTreeIterator extends Object implements TreeIterator<SNode> Iterator for aSNodesub-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 withskipChildren()method to completely skip processing of a sub-tree rooted at latest node returned fromnext(). At the moment, iterator doesn't support deletions.
- 
- 
Constructor SummaryConstructors Constructor Description DescendantsTreeIterator(SNode start)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()SNodenext()voidremove()voidskipChildren()Skip children of the last element returned by the iterator.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface java.util.IteratorforEachRemaining
 
- 
 
- 
- 
- 
Method Detail- 
skipChildrenpublic void skipChildren() Description copied from interface:TreeIteratorSkip children of the last element returned by the iterator.- Specified by:
- skipChildrenin interface- TreeIterator<SNode>
 
 
- 
 
-