|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiz.hammurapi.antlr.AstVisitor
public class AstVisitor
Visits AST and dispatches invocations by node names.
| Constructor Summary | |
|---|---|
AstVisitor(java.lang.String[] tokenTypeNames,
java.lang.String visitPrefix,
java.lang.String leavePrefix)
|
|
| Method Summary | |
|---|---|
void |
leave(java.lang.Object target)
Shall be invoked by Visitable at the end of navigation, when all children has already been visited. |
boolean |
visit(java.lang.Object target)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AstVisitor(java.lang.String[] tokenTypeNames,
java.lang.String visitPrefix,
java.lang.String leavePrefix)
tokenTypeNames - - can be obtained from Parser.visitPrefix - - visit method name prefix. E.g. if prefix is visit_
then visit of AST with type name LITERAL_throws will be dispatched
to method visit_LITERAL_throws if such method is present.leavePrefix - - leave method name prefix.| Method Detail |
|---|
public boolean visit(java.lang.Object target)
visit in interface Visitorpublic void leave(java.lang.Object target)
PoliteVisitor
leave in interface PoliteVisitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||