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
|
optionsatnState, 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, setOptiondeleteChild, dupTree, getAllChildrenWithType, getAltLabel, getChildrenAsArray, getFirstDescendantWithType, getFirstDescendantWithType, getNodesWithType, getNodesWithType, getNodesWithTypePreorderDFS_, getNodesWithTypePreorderDFS, getNodeWithTokenIndex, getOutermostAltNode, setText, setType, toTokenStringgetCharPositionInLine, getChildIndex, getLine, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toStringaddChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, freshenParentAndChildIndexesDeeply, freshenParentAndChildIndexesDeeply, getAncestor, getAncestors, getChild, getChildCount, getChildren, getFirstChildWithType, hasAncestor, insertChild, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTreepublic 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.TreedupNode in class GrammarASTWithOptionspublic Object visit(GrammarASTVisitor v)
visit in class GrammarASTCopyright © 1992–2020 ANTLR. All rights reserved.