| java.lang.Object biz.hammurapi.antlr.AstVisitor
AstVisitor | public class AstVisitor implements PoliteVisitor(Code) | | Visits AST and dispatches invocations by
node names.
author: Pavel Vlasov version: $Revision: 1.2 $ |
Constructor Summary | |
public | AstVisitor(String[] tokenTypeNames, String visitPrefix, String leavePrefix) Parameters: tokenTypeNames - - can be obtained from Parser. Parameters: visitPrefix - - visit method name prefix. |
AstVisitor | public AstVisitor(String[] tokenTypeNames, String visitPrefix, String leavePrefix)(Code) | | Parameters: tokenTypeNames - - can be obtained from Parser. Parameters: visitPrefix - - visit method name prefix. E.g. if prefix is visit_ then visit of AST with type name LITERAL_throws will be dispatchedto method visit_LITERAL_throws if such method is present. Parameters: leavePrefix - - leave method name prefix. |
|
|