public abstract class GrammarASTWithOptions extends GrammarAST
| Modifier and Type | Field and Description |
|---|---|
protected Map |
options
|
atnState, g, textOverride| Constructor and Description |
|---|
GrammarASTWithOptions(GrammarASTWithOptions
|
GrammarASTWithOptions(int type, Token t)
|
GrammarASTWithOptions(int type, Token t, String
|
GrammarASTWithOptions(Token t)
|
| Modifier and Type | Method and Description |
|---|---|
abstract GrammarASTWithOptions |
dupNode()
|
int |
getNumberOfOptions()
|
GrammarAST |
getOptionAST(String
Gets AST node holding value for option key; ignores default options and command-line forced options.
|
Map |
getOptions()
|
String |
getOptionString(String
|
void |
setOption(String
|
deleteChild, dupTree, getAllChildrenWithType, getAltLabel, getChildrenAsArray, getFirstDescendantWithType, getFirstDescendantWithType, getNodesWithType, getNodesWithType, getNodesWithTypePreorderDFS_, getNodesWithTypePreorderDFS, getNodeWithTokenIndex, getOutermostAltNode, setText, setType, toTokenString, visitprotected Map<String ,GrammarAST > options
public GrammarASTWithOptions(GrammarASTWithOptionsnode)
public GrammarASTWithOptions(Token t)
public GrammarASTWithOptions(int type,
Token t)public GrammarASTWithOptions(int type,
Token t,
String text) public void setOption(Stringkey, GrammarAST node)
public GrammarASTgetOptionAST(String key)
public int getNumberOfOptions()
public abstract GrammarASTWithOptionsdupNode()
public Map<String ,GrammarAST > getOptions()