类 CommonErrorNode
- java.lang.Object
-
- org.antlr.runtime.tree.BaseTree
-
- org.antlr.runtime.tree.CommonTree
-
- org.antlr.runtime.tree.CommonErrorNode
-
- 所有已实现的接口:
Tree
public class CommonErrorNode extends CommonTree
A node representing erroneous token range in token stream
-
-
字段概要
字段 修饰符和类型 字段 说明 IntStream
input
Token
start
Token
stop
RecognitionException
trappedException
-
从类继承的字段 org.antlr.runtime.tree.CommonTree
childIndex, parent, startIndex, stopIndex, token
-
从接口继承的字段 org.antlr.runtime.tree.Tree
INVALID_NODE
-
-
构造器概要
构造器 构造器 说明 CommonErrorNode(TokenStream input, Token start, Token stop, RecognitionException e)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.lang.String
getText()
int
getType()
Return a token type; needed for tree parsingboolean
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-
从类继承的方法 org.antlr.runtime.tree.CommonTree
dupNode, getCharPositionInLine, getChildIndex, getLine, getParent, getToken, getTokenStartIndex, getTokenStopIndex, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries
-
从类继承的方法 org.antlr.runtime.tree.BaseTree
addChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, freshenParentAndChildIndexesDeeply, freshenParentAndChildIndexesDeeply, getAncestor, getAncestors, getChild, getChildCount, getChildren, getFirstChildWithType, hasAncestor, insertChild, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTree
-
-
-
-
字段详细资料
-
input
public IntStream input
-
start
public Token start
-
stop
public Token stop
-
trappedException
public RecognitionException trappedException
-
-
构造器详细资料
-
CommonErrorNode
public CommonErrorNode(TokenStream input, Token start, Token stop, RecognitionException e)
-
-
方法详细资料
-
isNil
public boolean isNil()
从接口复制的说明:Tree
Indicates the node is a nil node but may still have children, meaning the tree is a flat list.- 指定者:
isNil
在接口中Tree
- 覆盖:
isNil
在类中CommonTree
-
getType
public int getType()
从接口复制的说明:Tree
Return a token type; needed for tree parsing- 指定者:
getType
在接口中Tree
- 覆盖:
getType
在类中CommonTree
-
getText
public java.lang.String getText()
- 指定者:
getText
在接口中Tree
- 覆盖:
getText
在类中CommonTree
-
toString
public java.lang.String toString()
从类复制的说明:BaseTree
Override to say how a node (not a tree) should look as text- 指定者:
toString
在接口中Tree
- 覆盖:
toString
在类中CommonTree
-
-