org.antlr.runtime.tree.Tree
ActionAST
, AltAST
, BlockAST
, GrammarRootAST
, RuleAST
, RuleRefAST
, TerminalAST
public abstract class GrammarASTWithOptions extends GrammarAST
Modifier and Type | Field | Description |
---|---|---|
protected Map<String,GrammarAST> |
options |
childIndex, parent, startIndex, stopIndex, token
atnState, 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, toStringTree
getCharPositionInLine, getChildIndex, getLine, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toString
deleteChild, dupTree, getAllChildrenWithType, getAltLabel, getChildrenAsArray, getFirstDescendantWithType, getFirstDescendantWithType, getNodesWithType, getNodesWithType, getNodesWithTypePreorderDFS, getNodesWithTypePreorderDFS_, getNodeWithTokenIndex, getOutermostAltNode, setText, setType, toTokenString, visit
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–2018 ANTLR. All rights reserved.