|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public void dispatchToVisit(java.lang.Object visiting) throws java.lang.Exception
visiting
-
java.lang.Exception
- The visit method threw an exception.public void visit(java.lang.Object visiting) throws java.lang.Exception
visiting
- The object being visited.
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |