Package org.antlr.runtime.tree
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 org.antlr.runtime.tree.CommonTree
childIndex, parent, startIndex, stopIndex, token
Fields inherited from interface org.antlr.runtime.tree.Tree
INVALID_NODE
-
Constructor Summary
ConstructorsConstructorDescriptionCommonErrorNode
(TokenStream input, Token start, Token stop, RecognitionException e) -
Method Summary
Methods inherited from class org.antlr.runtime.tree.CommonTree
dupNode, getCharPositionInLine, getChildIndex, getLine, getParent, getToken, getTokenStartIndex, getTokenStopIndex, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries
Methods inherited from class org.antlr.runtime.tree.BaseTree
addChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, getAncestor, getAncestors, getChild, getChildCount, getChildren, getFirstChildWithType, hasAncestor, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTree
-
Field Details
-
input
-
start
-
stop
-
trappedException
-
-
Constructor Details
-
CommonErrorNode
-
-
Method Details
-
isNil
public boolean isNil()Description copied from interface:Tree
Indicates the node is a nil node but may still have children, meaning the tree is a flat list.- Specified by:
isNil
in interfaceTree
- Overrides:
isNil
in classCommonTree
-
getType
public int getType()Description copied from interface:Tree
Return a token type; needed for tree parsing- Specified by:
getType
in interfaceTree
- Overrides:
getType
in classCommonTree
-
getText
- Specified by:
getText
in interfaceTree
- Overrides:
getText
in classCommonTree
-
toString
Description copied from class:BaseTree
Override to say how a node (not a tree) should look as text- Specified by:
toString
in interfaceTree
- Overrides:
toString
in classCommonTree
-