public abstract class GrammarASTWithOptions extends GrammarAST
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.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,
java.lang.String text) |
GrammarASTWithOptions(org.antlr.runtime.Token t) |
| Modifier and Type | Method and Description |
|---|---|
abstract GrammarASTWithOptions |
dupNode() |
int |
getNumberOfOptions() |
GrammarAST |
getOptionAST(java.lang.String key)
Gets AST node holding value for option key; ignores default options
and command-line forced options.
|
java.util.Map<java.lang.String,GrammarAST> |
getOptions() |
java.lang.String |
getOptionString(java.lang.String key) |
void |
setOption(java.lang.String key,
GrammarAST node) |
deleteChild, dupTree, getAllChildrenWithType, getAltLabel, getChildrenAsArray, getFirstDescendantWithType, getFirstDescendantWithType, getNodesWithType, getNodesWithType, getNodesWithTypePreorderDFS_, getNodesWithTypePreorderDFS, getNodeWithTokenIndex, getOutermostAltNode, setText, setType, toTokenString, visitgetCharPositionInLine, getChildIndex, getLine, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toStringaddChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, freshenParentAndChildIndexesDeeply, freshenParentAndChildIndexesDeeply, getAncestor, getAncestors, getChild, getChildCount, getChildren, getFirstChildWithType, hasAncestor, insertChild, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTreeprotected java.util.Map<java.lang.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,
java.lang.String text)
public void setOption(java.lang.String key,
GrammarAST node)
public java.lang.String getOptionString(java.lang.String key)
public GrammarAST getOptionAST(java.lang.String key)
public int getNumberOfOptions()
public abstract GrammarASTWithOptions dupNode()
dupNode in interface org.antlr.runtime.tree.TreedupNode in class GrammarASTpublic java.util.Map<java.lang.String,GrammarAST> getOptions()