|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.ast.TreeWalker
A helper class for traversing a tree.
| Nested Class Summary | |
(package private) static class |
TreeWalker.NodeList
|
| Constructor Summary | |
TreeWalker(ASTree root)
|
|
| Method Summary | |
ASTree |
begin()
Moves to the leftmost leaf node. |
TreeWalker |
copy()
Makes a copy of the TreeWalker object. |
ASTree |
current()
Returns the object at the current position. |
ASTree |
left()
Move to the left child. |
ASTree |
next()
Move to the next node in the post-order traversal. |
ASTree |
parent()
Move to the parent. |
ASTree |
right()
Move to the right child. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TreeWalker(ASTree root)
| Method Detail |
public TreeWalker copy()
public ASTree begin()
public ASTree next()
public ASTree current()
public ASTree left()
public ASTree right()
public ASTree parent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||