public class CommonErrorNode extends CommonTree
| Modifier and Type | Field and Description |
|---|---|
IntStream |
input |
Token |
start |
Token |
stop |
RecognitionException |
trappedException |
childIndex, parent, startIndex, stopIndex, tokenINVALID_NODE| Constructor and Description |
|---|
CommonErrorNode(TokenStream input,
Token start,
Token stop,
RecognitionException e) |
| Modifier and Type | Method and 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
|
dupNode, getCharPositionInLine, getChildIndex, getLine, 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 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-2013 ANTLR. All Rights Reserved.