ActionAST, AltAST, BlockAST, GrammarRootAST, RuleAST, RuleRefAST, TerminalASTpublic abstract class GrammarASTWithOptions extends GrammarAST
| Modifier and Type | Field | Description |
|---|---|---|
protected Map<String,GrammarAST> |
options |
childIndex, parent, startIndex, stopIndex, tokenatnState, g, textOverride| Constructor | Description |
|---|---|
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) |
|
GrammarASTWithOptions(GrammarASTWithOptions node) |
| Modifier and Type | Method | 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) |
addChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, freshenParentAndChildIndexesDeeply, freshenParentAndChildIndexesDeeply, getAncestor, getAncestors, getChild, getChildCount, getChildren, getFirstChildWithType, hasAncestor, insertChild, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTreegetCharPositionInLine, getChildIndex, getLine, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toStringdeleteChild, dupTree, getAllChildrenWithType, getAltLabel, getChildrenAsArray, getFirstDescendantWithType, getFirstDescendantWithType, getNodesWithType, getNodesWithType, getNodesWithTypePreorderDFS, getNodesWithTypePreorderDFS_, getNodeWithTokenIndex, getOutermostAltNode, setText, setType, toTokenString, visitprotected 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 class GrammarASTpublic Map<String,GrammarAST> getOptions()
Copyright © 1992–2019 ANTLR. All rights reserved.