RuleElementAST
public class RuleRefAST extends GrammarASTWithOptions implements RuleElementAST
childIndex, parent, startIndex, stopIndex, token
atnState, g, textOverride
options
Constructor | Description |
---|---|
RuleRefAST(int type) |
|
RuleRefAST(int type,
org.antlr.runtime.Token t) |
|
RuleRefAST(org.antlr.runtime.Token t) |
|
RuleRefAST(RuleRefAST node) |
Modifier and Type | Method | Description |
---|---|---|
RuleRefAST |
dupNode() |
Dup token too since we overwrite during LR rule transform
|
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 RuleRefAST(RuleRefAST node)
public RuleRefAST(org.antlr.runtime.Token t)
public RuleRefAST(int type)
public RuleRefAST(int type, org.antlr.runtime.Token t)
public RuleRefAST dupNode()
dupNode
in class GrammarASTWithOptions
public Object visit(GrammarASTVisitor v)
visit
in class GrammarAST
Copyright © 1992–2019 ANTLR. All rights reserved.