|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.antlr.runtime.tree.BaseTree
org.antlr.runtime.tree.CommonTree
org.antlr.runtime.tree.CommonErrorNode
public class CommonErrorNode
A node representing erroneous token range in token stream
Field Summary | |
---|---|
IntStream |
input
|
Token |
start
|
Token |
stop
|
RecognitionException |
trappedException
|
Fields inherited from class org.antlr.runtime.tree.CommonTree |
---|
childIndex, parent, startIndex, stopIndex, token |
Fields inherited from class org.antlr.runtime.tree.BaseTree |
---|
children |
Fields inherited from interface org.antlr.runtime.tree.Tree |
---|
INVALID_NODE |
Constructor Summary | |
---|---|
CommonErrorNode(TokenStream input,
Token start,
Token stop,
RecognitionException e)
|
Method Summary | |
---|---|
java.lang.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. |
java.lang.String |
toString()
Override to say how a node (not a tree) should look as text |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public IntStream input
public Token start
public Token stop
public RecognitionException trappedException
Constructor Detail |
---|
public CommonErrorNode(TokenStream input, Token start, Token stop, RecognitionException e)
Method Detail |
---|
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 java.lang.String getText()
getText
in interface Tree
getText
in class CommonTree
public java.lang.String toString()
BaseTree
toString
in interface Tree
toString
in class CommonTree
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |