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