private static class ANTLRParser.GrammarASTErrorNode extends GrammarAST
| Modifier and Type | Field and Description |
|---|---|
IntStream |
input |
Token |
start |
Token |
stop |
RecognitionException |
trappedException |
blockOptions, code, enclosingRuleName, followingNFAState, ID, lookaheadDFA, NFAStartState, NFATreeDownState, outerAltNum, rewriteRefsDeep, rewriteRefsShallow, setValue, terminalOptionschildIndex, parent, startIndex, stopIndex, tokenINVALID_NODE| Constructor and Description |
|---|
GrammarASTErrorNode(TokenStream input,
Token start,
Token stop,
RecognitionException e) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getText() |
int |
getType()
Return a token type; needed for tree parsing
|
boolean |
isNil()
Indicates the node is a nil node but may still have children, meaning
the tree is a flat list.
|
void |
setText(java.lang.String value) |
void |
setType(int value) |
java.lang.String |
toString()
Override to say how a node (not a tree) should look as text
|
_findAllType, descendants, descendants, dup, dupNode, dupTree, dupTreeNoActions, equals, findAllType, findFirstType, getBlockALT, getBlockOption, getBlockOptions, getCharPositionInLine, getChildrenAsArray, getLastChild, getLastSibling, getLine, getLookaheadDFA, getNextSibling, getNFAStartState, getSetValue, hashCode, hasSameTreeStructure, initialize, initialize, initialize, setBlockOption, setBlockOptions, setCharPositionInLine, setLine, setLookaheadDFA, setNFAStartState, setOption, setOptions, setSetValue, setTerminalOption, setTokenBoundaries, setTreeEnclosingRuleNameDeeply, toStringListgetChildIndex, getParent, getToken, getTokenStartIndex, getTokenStopIndex, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundariesaddChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, freshenParentAndChildIndexesDeeply, freshenParentAndChildIndexesDeeply, getAncestor, getAncestors, getChild, getChildCount, getChildren, getFirstChildWithType, hasAncestor, insertChild, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTreepublic IntStream input
public Token start
public Token stop
public RecognitionException trappedException
public GrammarASTErrorNode(TokenStream input, Token start, Token stop, RecognitionException e)
public boolean isNil()
TreeisNil in interface TreeisNil in class CommonTreepublic java.lang.String getText()
getText in interface TreegetText in class GrammarASTpublic void setText(java.lang.String value)
setText in class GrammarASTpublic int getType()
TreegetType in interface TreegetType in class GrammarASTpublic void setType(int value)
setType in class GrammarASTpublic java.lang.String toString()
BaseTreetoString in interface TreetoString in class CommonTree