public class AltAST extends GrammarASTWithOptions
| Modifier and Type | Field | 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
|
childIndex, parent, startIndex, stopIndex, tokenatnState, g, textOverrideoptions| Constructor | Description |
|---|---|
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) |
|
AltAST(AltAST node) |
| Modifier and Type | Method | Description |
|---|---|---|
AltAST |
dupNode() |
|
Object |
visit(GrammarASTVisitor v) |
addChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, freshenParentAndChildIndexesDeeply, freshenParentAndChildIndexesDeeply, getAncestor, getAncestors, getChild, getChildCount, getChildren, getFirstChildWithType, hasAncestor, insertChild, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTreegetCharPositionInLine, getChildIndex, getLine, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toStringdeleteChild, dupTree, getAllChildrenWithType, getAltLabel, getChildrenAsArray, getFirstDescendantWithType, getFirstDescendantWithType, getNodesWithType, getNodesWithType, getNodesWithTypePreorderDFS, getNodesWithTypePreorderDFS_, getNodeWithTokenIndex, getOutermostAltNode, setText, setType, toTokenStringgetNumberOfOptions, getOptionAST, getOptions, getOptionString, setOptionpublic 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 class GrammarASTWithOptionspublic Object visit(GrammarASTVisitor v)
visit in class GrammarASTCopyright © 1992–2019 ANTLR. All rights reserved.