Package org.antlr.v4.tool.ast
Class ActionAST
- java.lang.Object
-
- org.antlr.runtime.tree.BaseTree
-
- org.antlr.runtime.tree.CommonTree
-
- org.antlr.v4.tool.ast.GrammarAST
-
- org.antlr.v4.tool.ast.GrammarASTWithOptions
-
- org.antlr.v4.tool.ast.ActionAST
-
- All Implemented Interfaces:
org.antlr.runtime.tree.Tree
,RuleElementAST
- Direct Known Subclasses:
PredAST
public class ActionAST extends GrammarASTWithOptions implements RuleElementAST
-
-
Field Summary
Fields Modifier and Type Field Description List<org.antlr.runtime.Token>
chunks
AttributeResolver
resolver
-
Fields inherited from class org.antlr.v4.tool.ast.GrammarASTWithOptions
options
-
Fields inherited from class org.antlr.v4.tool.ast.GrammarAST
atnState, g, textOverride
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionAST
dupNode()
GrammarAST
getScope()
void
setScope(GrammarAST scope)
Object
visit(GrammarASTVisitor v)
-
Methods inherited from class org.antlr.v4.tool.ast.GrammarASTWithOptions
getNumberOfOptions, getOptionAST, getOptions, getOptionString, setOption
-
Methods inherited from class org.antlr.v4.tool.ast.GrammarAST
deleteChild, dupTree, getAllChildrenWithType, getAltLabel, getChildrenAsArray, getFirstDescendantWithType, getFirstDescendantWithType, getNodesWithType, getNodesWithType, getNodesWithTypePreorderDFS, getNodesWithTypePreorderDFS_, getNodeWithTokenIndex, getOutermostAltNode, setText, setType, toTokenString
-
Methods inherited from class org.antlr.runtime.tree.CommonTree
getCharPositionInLine, getChildIndex, getLine, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toString
-
Methods inherited from class org.antlr.runtime.tree.BaseTree
addChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, freshenParentAndChildIndexesDeeply, freshenParentAndChildIndexesDeeply, getAncestor, getAncestors, getChild, getChildCount, getChildren, getFirstChildWithType, hasAncestor, insertChild, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTree
-
-
-
-
Field Detail
-
resolver
public AttributeResolver resolver
-
chunks
public List<org.antlr.runtime.Token> chunks
-
-
Constructor Detail
-
ActionAST
public ActionAST(ActionAST node)
-
ActionAST
public ActionAST(org.antlr.runtime.Token t)
-
ActionAST
public ActionAST(int type)
-
ActionAST
public ActionAST(int type, org.antlr.runtime.Token t)
-
-
Method Detail
-
dupNode
public ActionAST dupNode()
- Specified by:
dupNode
in interfaceorg.antlr.runtime.tree.Tree
- Specified by:
dupNode
in classGrammarASTWithOptions
-
visit
public Object visit(GrammarASTVisitor v)
- Overrides:
visit
in classGrammarAST
-
setScope
public void setScope(GrammarAST scope)
-
getScope
public GrammarAST getScope()
-
-