Package org.antlr.runtime.tree
Class TreeIterator
java.lang.Object
org.antlr.runtime.tree.TreeIterator
- All Implemented Interfaces:
Iterator
Return a node stream from a doubly-linked tree whose nodes
know what child index they are. No remove() is supported.
Emit navigation nodes (DOWN, UP, and EOF) to let show tree structure.
-
Field Details
-
adaptor
-
root
-
tree
-
firstTime
protected boolean firstTime -
up
-
down
-
eof
-
nodes
If we emit UP/DOWN nodes, we need to spit out multiple nodes per next() call.
-
-
Constructor Details
-
TreeIterator
-
TreeIterator
-
-
Method Details