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, textOverrideFields inherited from class org.antlr.runtime.tree.CommonTree
childIndex, parent, startIndex, stopIndex, tokenFields inherited from class org.antlr.runtime.tree.BaseTree
childrenFields 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 GrammarASTWithOptionsdupNode()intgetOptionAST(String key) Gets AST node holding value for option key; ignores default options and command-line forced options.getOptionString(String key) voidsetOption(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, visitMethods inherited from class org.antlr.runtime.tree.CommonTree
getCharPositionInLine, getChildIndex, getLine, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toStringMethods 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:
dupNodein interfaceorg.antlr.runtime.tree.Tree- Overrides:
dupNodein classGrammarAST
-
getOptions
-