public class CommonErrorNode extends CommonTree
Modifier and Type | Field and Description |
---|---|
IntStream |
input |
Token |
start |
Token |
stop |
RecognitionException |
trappedException |
childIndex, parent, startIndex, stopIndex, token
INVALID_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, setUnknownTokenBoundaries
addChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, freshenParentAndChildIndexesDeeply, freshenParentAndChildIndexesDeeply, getAncestor, getAncestors, getChild, getChildCount, getChildren, getFirstChildWithType, hasAncestor, insertChild, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTree
public IntStream input
public Token start
public Token stop
public RecognitionException trappedException
public CommonErrorNode(TokenStream input, Token start, Token stop, RecognitionException e)
public boolean isNil()
Tree
isNil
in interface Tree
isNil
in class CommonTree
public int getType()
Tree
getType
in interface Tree
getType
in class CommonTree
public String getText()
getText
in interface Tree
getText
in class CommonTree
Copyright © 1992–2015 ANTLR. All rights reserved.