TopDownTreeWalk
A class that implements a TopDownTreeWalk.
Example of use of the Iterator:
Tree currentTree; for (TopDownTreeWalk treeWalk = new TopDownTreeWalk(tree); !treeWalk.atEnd(); treeWalk.advance()) { currentTree = treeWalk.get(); ... }
The TopDownTreeWalk constructor.
root – The root of the tree.
advance
Advances to the next tree.
atEnd
true if I’m positioned after the last item.
get
The Tree at the current position.