static class ANTLRParser.grammar_Adaptor extends CommonTreeAdaptor
| Modifier and Type | Field and Description |
|---|---|
(package private) ANTLRParser |
_outer |
treeToUniqueIDMap, uniqueNodeID| Constructor and Description |
|---|
grammar_Adaptor(ANTLRParser outer) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
create(Token payload)
Create a tree node from Token object; for CommonTree type trees,
then the token just becomes the payload.
|
java.lang.Object |
errorNode(TokenStream input,
Token start,
Token stop,
RecognitionException e)
create tree node that holds the start and stop tokens associated
with an error.
|
createToken, createToken, dupNode, getChild, getChildCount, getChildIndex, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, replaceChildren, setChildIndex, setParent, setTokenBoundariesaddChild, becomeRoot, becomeRoot, create, create, create, deleteChild, dupTree, dupTree, getUniqueID, isNil, nil, rulePostProcessing, setChild, setText, setTypeANTLRParser _outer
public grammar_Adaptor(ANTLRParser outer)
public java.lang.Object create(Token payload)
TreeAdaptorcreate in interface TreeAdaptorcreate in class CommonTreeAdaptorpublic java.lang.Object errorNode(TokenStream input, Token start, Token stop, RecognitionException e)
BaseTreeAdaptorerrorNode in interface TreeAdaptorerrorNode in class BaseTreeAdaptor