Package org.antlr.runtime.tree
Class TreeIterator
- java.lang.Object
-
- org.antlr.runtime.tree.TreeIterator
-
-
Field Summary
Fields Modifier and Type Field Description protected TreeAdaptor
adaptor
Object
down
Object
eof
protected boolean
firstTime
protected FastQueue<Object>
nodes
If we emit UP/DOWN nodes, we need to spit out multiple nodes per next() call.protected Object
root
protected Object
tree
Object
up
-
Constructor Summary
Constructors Constructor Description TreeIterator(Object tree)
TreeIterator(TreeAdaptor adaptor, Object tree)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Object
next()
void
remove()
void
reset()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
TreeIterator
public TreeIterator(Object tree)
-
TreeIterator
public TreeIterator(TreeAdaptor adaptor, Object tree)
-
-