Class TopLevelClass.Visitor

java.lang.Object
  |
  +--TopLevelClass.Visitor
Enclosing class:
TopLevelClass

public static class TopLevelClass.Visitor
extends Object

A visitor.

This class has no method to override because the visit methods are dispatched by reflection.

Since:
notavaCC 1.0
See Also:
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

TopLevelClass.Visitor

public TopLevelClass.Visitor()
Method Detail

visitAll

public final void visitAll(TopLevelClass.Node node)
Traverses a (sub-)tree.

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.

Parameters:
node - the root of the (sub-)tree to traverse.
Since:
notavaCC 1.0