Class AltAST
java.lang.Object
org.antlr.runtime.tree.BaseTree
org.antlr.runtime.tree.CommonTree
org.antlr.v4.tool.ast.GrammarAST
org.antlr.v4.tool.ast.GrammarASTWithOptions
org.antlr.v4.tool.ast.AltAST
- All Implemented Interfaces:
org.antlr.runtime.tree.Tree
Any ALT (which can be child of ALT_REWRITE node)
-
Field Summary
FieldsModifier and TypeFieldDescriptionIf someone specified an outermost alternative label with #foo.If we transformed this alt from a left-recursive one, need info on itFields inherited from class GrammarASTWithOptions
optionsFields inherited from class GrammarAST
atnState, g, textOverrideFields inherited from class org.antlr.runtime.tree.CommonTree
childIndex, parent, startIndex, stopIndex, tokenFields inherited from class org.antlr.runtime.tree.BaseTree
childrenFields inherited from interface org.antlr.runtime.tree.Tree
INVALID_NODE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class GrammarASTWithOptions
getNumberOfOptions, getOptionAST, getOptions, getOptionString, setOptionMethods inherited from class GrammarAST
deleteChild, dupTree, getAllChildrenWithType, getAltLabel, getChildrenAsArray, getFirstDescendantWithType, getFirstDescendantWithType, getNodesWithType, getNodesWithType, getNodesWithTypePreorderDFS, getNodesWithTypePreorderDFS_, getNodeWithTokenIndex, getOutermostAltNode, setText, setType, toTokenStringMethods inherited from class org.antlr.runtime.tree.CommonTree
getCharPositionInLine, getChildIndex, getLine, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toStringMethods 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
-
alt
-
leftRecursiveAltInfo
If we transformed this alt from a left-recursive one, need info on it -
altLabel
If someone specified an outermost alternative label with #foo. Token type will be ID.
-
-
Constructor Details
-
AltAST
-
AltAST
public AltAST(org.antlr.runtime.Token t) -
AltAST
public AltAST(int type) -
AltAST
public AltAST(int type, org.antlr.runtime.Token t) -
AltAST
-
-
Method Details
-
dupNode
- Specified by:
dupNodein interfaceorg.antlr.runtime.tree.Tree- Specified by:
dupNodein classGrammarASTWithOptions
-
visit
- Overrides:
visitin classGrammarAST
-