Package org.antlr.grammar.v3
Class ANTLRParser.GrammarASTErrorNode
- java.lang.Object
-
- org.antlr.runtime.tree.BaseTree
-
- org.antlr.runtime.tree.CommonTree
-
- org.antlr.tool.GrammarAST
-
- org.antlr.grammar.v3.ANTLRParser.GrammarASTErrorNode
-
- All Implemented Interfaces:
Tree
- Enclosing class:
- ANTLRParser
private static class ANTLRParser.GrammarASTErrorNode extends GrammarAST
-
-
Field Summary
Fields Modifier and Type Field Description IntStream
input
Token
start
Token
stop
RecognitionException
trappedException
-
Fields inherited from class org.antlr.tool.GrammarAST
blockOptions, code, enclosingRuleName, followingNFAState, ID, lookaheadDFA, NFAStartState, NFATreeDownState, outerAltNum, rewriteRefsDeep, rewriteRefsShallow, setValue, terminalOptions
-
Fields 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
Constructors Constructor Description GrammarASTErrorNode(TokenStream input, Token start, Token stop, RecognitionException e)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.void
setText(java.lang.String value)
void
setType(int value)
java.lang.String
toString()
Override to say how a node (not a tree) should look as text-
Methods inherited from class org.antlr.tool.GrammarAST
_findAllType, descendants, descendants, dup, dupNode, dupTree, dupTreeNoActions, equals, findAllType, findFirstType, getBlockALT, getBlockOption, getBlockOptions, getCharPositionInLine, getChildrenAsArray, getLastChild, getLastSibling, getLine, getLookaheadDFA, getNextSibling, getNFAStartState, getSetValue, hashCode, hasSameTreeStructure, initialize, initialize, initialize, setBlockOption, setBlockOptions, setCharPositionInLine, setLine, setLookaheadDFA, setNFAStartState, setOption, setOptions, setSetValue, setTerminalOption, setTokenBoundaries, setTreeEnclosingRuleNameDeeply, toStringList
-
Methods inherited from class org.antlr.runtime.tree.CommonTree
getChildIndex, getParent, getToken, getTokenStartIndex, getTokenStopIndex, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries
-
Methods inherited from class 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
-
-
-
-
Field Detail
-
input
public IntStream input
-
start
public Token start
-
stop
public Token stop
-
trappedException
public RecognitionException trappedException
-
-
Constructor Detail
-
GrammarASTErrorNode
public GrammarASTErrorNode(TokenStream input, Token start, Token stop, RecognitionException e)
-
-
Method Detail
-
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
-
getText
public java.lang.String getText()
- Specified by:
getText
in interfaceTree
- Overrides:
getText
in classGrammarAST
-
setText
public void setText(java.lang.String value)
- Overrides:
setText
in classGrammarAST
-
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 classGrammarAST
-
setType
public void setType(int value)
- Overrides:
setType
in classGrammarAST
-
toString
public java.lang.String 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
-
-