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
-
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class org.antlr.tool.GrammarAST
blockOptions, code, enclosingRuleName, followingNFAState, ID, lookaheadDFA, NFAStartState, NFATreeDownState, outerAltNum, rewriteRefsDeep, rewriteRefsShallow, setValue, terminalOptionsFields inherited from class org.antlr.runtime.tree.CommonTree
childIndex, parent, startIndex, stopIndex, tokenFields inherited from interface org.antlr.runtime.tree.Tree
INVALID_NODE -
Constructor Summary
ConstructorsConstructorDescriptionGrammarASTErrorNode(TokenStream input, Token start, Token stop, RecognitionException e) -
Method Summary
Modifier and TypeMethodDescriptiongetText()intgetType()Return a token type; needed for tree parsingbooleanisNil()Indicates the node is a nil node but may still have children, meaning the tree is a flat list.voidvoidsetType(int value) toString()Override to say how a node (not a tree) should look as textMethods 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, toStringListMethods inherited from class org.antlr.runtime.tree.CommonTree
getChildIndex, getParent, getToken, getTokenStartIndex, getTokenStopIndex, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundariesMethods 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 Details
-
input
-
start
-
stop
-
trappedException
-
-
Constructor Details
-
GrammarASTErrorNode
-
-
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
-
getText
- Specified by:
getTextin interfaceTree- Overrides:
getTextin classGrammarAST
-
setText
- Overrides:
setTextin classGrammarAST
-
getType
public int getType()Description copied from interface:TreeReturn a token type; needed for tree parsing- Specified by:
getTypein interfaceTree- Overrides:
getTypein classGrammarAST
-
setType
public void setType(int value) - Overrides:
setTypein classGrammarAST
-
toString
Description copied from class:BaseTreeOverride to say how a node (not a tree) should look as text- Specified by:
toStringin interfaceTree- Overrides:
toStringin classCommonTree
-