Package org.jetbrains.mps.openapi.util
Interface TreeIterator<T>
-
- All Superinterfaces:
Iterator<T>
- All Known Implementing Classes:
DescendantsTreeIterator
public interface TreeIterator<T> extends Iterator<T>
Tree iterator traverses a n-ary tree in a way that a parent node is visited before its children and children are returned left-to-right.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
skipChildren()
Skip children of the last element returned by the iterator.-
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
-
-
-
Method Detail
-
skipChildren
void skipChildren()
Skip children of the last element returned by the iterator.- Throws:
IllegalStateException
- if the next method has not yet been called
-
-