Treepublic class CommonErrorNode extends CommonTree
| Modifier and Type | Field | Description |
|---|---|---|
IntStream |
input |
|
Token |
start |
|
Token |
stop |
|
RecognitionException |
trappedException |
childIndex, parent, startIndex, stopIndex, tokenINVALID_NODE| Constructor | Description |
|---|---|
CommonErrorNode(TokenStream input,
Token start,
Token stop,
RecognitionException e) |
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
String |
toString() |
Override to say how a node (not a tree) should look as text
|
addChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, freshenParentAndChildIndexesDeeply, freshenParentAndChildIndexesDeeply, getAncestor, getAncestors, getChild, getChildCount, getChildren, getFirstChildWithType, hasAncestor, insertChild, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTreedupNode, getCharPositionInLine, getChildIndex, getLine, getParent, getToken, getTokenStartIndex, getTokenStopIndex, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundariespublic IntStream input
public Token start
public Token stop
public RecognitionException trappedException
public CommonErrorNode(TokenStream input, Token start, Token stop, RecognitionException e)
public boolean isNil()
TreeisNil in interface TreeisNil in class CommonTreepublic int getType()
TreegetType in interface TreegetType in class CommonTreepublic String getText()
getText in interface TreegetText in class CommonTreeCopyright © 1992–2018 ANTLR. All rights reserved.