| Modifier and Type | Field and Description |
|---|---|
| protected TreeAdaptor |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | visit(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. |
| adaptor | back to summary |
|---|---|
| protected TreeAdaptor adaptor | |
| TreeVisitor | back to summary |
|---|---|
| public TreeVisitor(TreeAdaptor adaptor) | |
| TreeVisitor | back to summary |
|---|---|
| public TreeVisitor() | |
| visit | back to summary |
|---|---|
| public Object visit(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. Execute both actions even if t has no children. If a child visit yields a new child, it can update its parent's child list or just return the new child. The child update code works even if the child visit alters its parent and returns the new tree. Return result of applying post action to this node. | |