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, token
atnState, g, textOverride
options
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, toStringTree
getCharPositionInLine, getChildIndex, getLine, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toString
deleteChild, dupTree, getAllChildrenWithType, getAltLabel, getChildrenAsArray, getFirstDescendantWithType, getFirstDescendantWithType, getNodesWithType, getNodesWithType, getNodesWithTypePreorderDFS, getNodesWithTypePreorderDFS_, getNodeWithTokenIndex, getOutermostAltNode, setText, setType, toTokenString
getNumberOfOptions, getOptionAST, getOptions, getOptionString, setOption
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 class GrammarASTWithOptions
public Object visit(GrammarASTVisitor v)
visit
in class GrammarAST
Copyright © 1992–2019 ANTLR. All rights reserved.