Package org.antlr.v4.tool.ast
Class GrammarASTWithOptions
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
- All Implemented Interfaces:
org.antlr.runtime.tree.Tree
- Direct Known Subclasses:
ActionAST
,AltAST
,BlockAST
,GrammarRootAST
,RuleAST
,RuleRefAST
,TerminalAST
-
Field Summary
FieldsFields inherited from class org.antlr.v4.tool.ast.GrammarAST
atnState, g, textOverride
Fields inherited from class org.antlr.runtime.tree.CommonTree
childIndex, parent, startIndex, stopIndex, token
Fields inherited from class org.antlr.runtime.tree.BaseTree
children
Fields inherited from interface org.antlr.runtime.tree.Tree
INVALID_NODE
-
Constructor Summary
ConstructorsConstructorDescriptionGrammarASTWithOptions
(int type) GrammarASTWithOptions
(int type, org.antlr.runtime.Token t) GrammarASTWithOptions
(int type, org.antlr.runtime.Token t, String text) GrammarASTWithOptions
(org.antlr.runtime.Token t) -
Method Summary
Modifier and TypeMethodDescriptionabstract GrammarASTWithOptions
dupNode()
int
getOptionAST
(String key) Gets AST node holding value for option key; ignores default options and command-line forced options.getOptionString
(String key) void
setOption
(String key, GrammarAST node) 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, visit
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 Details
-
options
-
-
Constructor Details
-
GrammarASTWithOptions
-
GrammarASTWithOptions
public GrammarASTWithOptions(org.antlr.runtime.Token t) -
GrammarASTWithOptions
public GrammarASTWithOptions(int type) -
GrammarASTWithOptions
public GrammarASTWithOptions(int type, org.antlr.runtime.Token t) -
GrammarASTWithOptions
-
-
Method Details
-
setOption
-
getOptionString
-
getOptionAST
Gets AST node holding value for option key; ignores default options and command-line forced options. -
getNumberOfOptions
public int getNumberOfOptions() -
dupNode
- Specified by:
dupNode
in interfaceorg.antlr.runtime.tree.Tree
- Overrides:
dupNode
in classGrammarAST
-
getOptions
-