Class CommonErrorNode
java.lang.Object
org.antlr.runtime.tree.BaseTree
org.antlr.runtime.tree.CommonTree
org.antlr.runtime.tree.CommonErrorNode
- All Implemented Interfaces:
Tree
A node representing erroneous token range in token stream
-
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class CommonTree
childIndex, parent, startIndex, stopIndex, tokenFields inherited from interface Tree
INVALID_NODE -
Constructor Summary
ConstructorsConstructorDescriptionCommonErrorNode(TokenStream input, Token start, Token stop, RecognitionException e) -
Method Summary
Methods inherited from class CommonTree
dupNode, getCharPositionInLine, getChildIndex, getLine, getParent, getToken, getTokenStartIndex, getTokenStopIndex, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundariesMethods inherited from class BaseTree
addChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, freshenParentAndChildIndexesDeeply, freshenParentAndChildIndexesDeeply, getAncestor, getAncestors, getChild, getChildCount, getChildren, getFirstChildWithType, hasAncestor, insertChild, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTree
-
Field Details
-
input
-
start
-
stop
-
trappedException
-
-
Constructor Details
-
CommonErrorNode
-
-
Method Details
-
isNil
public boolean isNil()Description copied from interface:TreeIndicates the node is a nil node but may still have children, meaning the tree is a flat list.- Specified by:
isNilin interfaceTree- Overrides:
isNilin classCommonTree
-
getType
public int getType()Description copied from interface:TreeReturn a token type; needed for tree parsing- Specified by:
getTypein interfaceTree- Overrides:
getTypein classCommonTree
-
getText
- Specified by:
getTextin interfaceTree- Overrides:
getTextin classCommonTree
-
toString
-