|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.antlr.runtime.tree.TreeVisitor
public class TreeVisitor
Do a depth first walk of a tree, applying pre() and post() actions we go.
| Field Summary | |
|---|---|
protected TreeAdaptor |
adaptor
|
| Constructor Summary | |
|---|---|
TreeVisitor()
|
|
TreeVisitor(TreeAdaptor adaptor)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
visit(java.lang.Object t,
TreeVisitorAction action)
Visit every node in tree t and trigger an action for each node before/after having visited all of its children. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TreeAdaptor adaptor
| Constructor Detail |
|---|
public TreeVisitor(TreeAdaptor adaptor)
public TreeVisitor()
| Method Detail |
|---|
public java.lang.Object visit(java.lang.Object t,
TreeVisitorAction action)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||