com.iotabits.revisitor
Interface iReflectiveVisitor

All Known Implementing Classes:
BasicReflectiveVisitor

public interface iReflectiveVisitor

This is the interface that makes it easier to write visitors then having to declare each visit method in your revisitor.

Use this, and if performance is not acceptable, replace this with the more traditional approach or declaring a method for each type of object that can be visited.


Method Summary
 void dispatchToVisit(java.lang.Object visiting)
          This is the dispatcher that finds a visit method and calls it with the visiting object as an argument.
 void visit(java.lang.Object visiting)
          This is the method that defines the default behavior of the revisitor.
 

Method Detail

dispatchToVisit

public void dispatchToVisit(java.lang.Object visiting)
                     throws java.lang.Exception
This is the dispatcher that finds a visit method and calls it with the visiting object as an argument.

Parameters:
visiting -
Throws:
java.lang.Exception - The visit method threw an exception.

visit

public void visit(java.lang.Object visiting)
           throws java.lang.Exception
This is the method that defines the default behavior of the revisitor.

Parameters:
visiting - The object being visited.
Throws:
java.lang.Exception