|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
|
+--TopLevelClass.Visitor
A visitor.
This class has no method to override because the visit methods are dispatched by reflection.
TopLevelClass.Node.accept(TopLevelClass.Visitor)
Constructor Summary | |
TopLevelClass.Visitor()
|
Method Summary | |
void |
visitAll(TopLevelClass.Node node)
Traverses a (sub-)tree. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TopLevelClass.Visitor()
Method Detail |
public final void visitAll(TopLevelClass.Node node)
The node
and the child nodes of it are traversed recursively (preorder traversal).
A node is passed to the method of this
visitor, using reflection,
that is public, whose name is visit
,
that has only one argument whose type is compatible with this
node,
and that has no throws clause.
Note: Maybe it will be dispatched without reflection in the future versions.
node
- the root of the (sub-)tree to traverse.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |