public class AltAST extends GrammarASTWithOptions
Modifier and Type | Field and Description |
---|---|
Alternative |
alt |
GrammarAST |
altLabel
If someone specified an outermost alternative label with #foo.
|
LeftRecursiveRuleAltInfo |
leftRecursiveAltInfo
If we transformed this alt from a left-recursive one, need info on it
|
options
atnState, g, textOverride
Constructor and Description |
---|
AltAST(AltAST node) |
AltAST(int type) |
AltAST(int type,
org.antlr.runtime.Token t) |
AltAST(int type,
org.antlr.runtime.Token t,
String text) |
AltAST(org.antlr.runtime.Token t) |
Modifier and Type | Method and Description |
---|---|
AltAST |
dupNode() |
Object |
visit(GrammarASTVisitor v) |
getNumberOfOptions, getOptionAST, getOptions, getOptionString, setOption
deleteChild, dupTree, getAllChildrenWithType, getAltLabel, getChildrenAsArray, getFirstDescendantWithType, getFirstDescendantWithType, getNodesWithType, getNodesWithType, getNodesWithTypePreorderDFS_, getNodesWithTypePreorderDFS, getNodeWithTokenIndex, getOutermostAltNode, setText, setType, toTokenString
getCharPositionInLine, getChildIndex, getLine, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toString
addChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, freshenParentAndChildIndexesDeeply, freshenParentAndChildIndexesDeeply, getAncestor, getAncestors, getChild, getChildCount, getChildren, getFirstChildWithType, hasAncestor, insertChild, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTree
public Alternative alt
public LeftRecursiveRuleAltInfo leftRecursiveAltInfo
public GrammarAST altLabel
public AltAST(AltAST node)
public AltAST(org.antlr.runtime.Token t)
public AltAST(int type)
public AltAST(int type, org.antlr.runtime.Token t)
public AltAST(int type, org.antlr.runtime.Token t, String text)
public AltAST dupNode()
dupNode
in interface org.antlr.runtime.tree.Tree
dupNode
in class GrammarASTWithOptions
public Object visit(GrammarASTVisitor v)
visit
in class GrammarAST
Copyright © 1992–2020 ANTLR. All rights reserved.