public abstract class GrammarASTWithOptions extends GrammarAST
Modifier and Type | Field and Description |
---|---|
protected Map<String,GrammarAST> |
options |
atnState, g, textOverride
Constructor and Description |
---|
GrammarASTWithOptions(GrammarASTWithOptions node) |
GrammarASTWithOptions(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) |
Modifier and Type | Method and Description |
---|---|
abstract GrammarASTWithOptions |
dupNode() |
int |
getNumberOfOptions() |
GrammarAST |
getOptionAST(String key)
Gets AST node holding value for option key; ignores default options
and command-line forced options.
|
Map<String,GrammarAST> |
getOptions() |
String |
getOptionString(String key) |
void |
setOption(String key,
GrammarAST node) |
deleteChild, dupTree, getAllChildrenWithType, getAltLabel, getChildrenAsArray, getFirstDescendantWithType, getFirstDescendantWithType, getNodesWithType, getNodesWithType, getNodesWithTypePreorderDFS_, getNodesWithTypePreorderDFS, getNodeWithTokenIndex, getOutermostAltNode, setText, setType, toTokenString, visit
getCharPositionInLine, getChildIndex, getLine, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toString
addChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, freshenParentAndChildIndexesDeeply, freshenParentAndChildIndexesDeeply, getAncestor, getAncestors, getChild, getChildCount, getChildren, getFirstChildWithType, hasAncestor, insertChild, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTree
protected Map<String,GrammarAST> options
public GrammarASTWithOptions(GrammarASTWithOptions node)
public GrammarASTWithOptions(org.antlr.runtime.Token t)
public GrammarASTWithOptions(int type)
public GrammarASTWithOptions(int type, org.antlr.runtime.Token t)
public GrammarASTWithOptions(int type, org.antlr.runtime.Token t, String text)
public void setOption(String key, GrammarAST node)
public GrammarAST getOptionAST(String key)
public int getNumberOfOptions()
public abstract GrammarASTWithOptions dupNode()
dupNode
in interface org.antlr.runtime.tree.Tree
dupNode
in class GrammarAST
public Map<String,GrammarAST> getOptions()
Copyright © 1992–2020 ANTLR. All rights reserved.