public class GrammarRootAST extends GrammarASTWithOptions
| Modifier and Type | Field and Description |
|---|---|
Map<String,String> |
cmdLineOptions |
static Map<String,String> |
defaultOptions |
String |
fileName |
int |
grammarType |
boolean |
hasErrors |
org.antlr.runtime.TokenStream |
tokenStream
Track stream used to create this tree
|
optionsatnState, g, textOverride| Constructor and Description |
|---|
GrammarRootAST(GrammarRootAST node) |
GrammarRootAST(int type,
org.antlr.runtime.Token t,
String text,
org.antlr.runtime.TokenStream tokenStream) |
GrammarRootAST(int type,
org.antlr.runtime.Token t,
org.antlr.runtime.TokenStream tokenStream) |
GrammarRootAST(org.antlr.runtime.Token t,
org.antlr.runtime.TokenStream tokenStream) |
| Modifier and Type | Method and Description |
|---|---|
GrammarRootAST |
dupNode() |
String |
getGrammarName() |
String |
getOptionString(String key) |
Object |
visit(GrammarASTVisitor v) |
getNumberOfOptions, getOptionAST, getOptions, setOptiondeleteChild, dupTree, getAllChildrenWithType, getAltLabel, getChildrenAsArray, getFirstDescendantWithType, getFirstDescendantWithType, getNodesWithType, getNodesWithType, getNodesWithTypePreorderDFS_, getNodesWithTypePreorderDFS, getNodeWithTokenIndex, getOutermostAltNode, setText, setType, toTokenStringgetCharPositionInLine, 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, toStringTreepublic int grammarType
public boolean hasErrors
public final org.antlr.runtime.TokenStream tokenStream
public String fileName
public GrammarRootAST(GrammarRootAST node)
public GrammarRootAST(org.antlr.runtime.Token t,
org.antlr.runtime.TokenStream tokenStream)
public GrammarRootAST(int type,
org.antlr.runtime.Token t,
org.antlr.runtime.TokenStream tokenStream)
public GrammarRootAST(int type,
org.antlr.runtime.Token t,
String text,
org.antlr.runtime.TokenStream tokenStream)
public String getGrammarName()
public String getOptionString(String key)
getOptionString in class GrammarASTWithOptionspublic Object visit(GrammarASTVisitor v)
visit in class GrammarASTpublic GrammarRootAST dupNode()
dupNode in interface org.antlr.runtime.tree.TreedupNode in class GrammarASTWithOptionsCopyright © 1992–2020 ANTLR. All rights reserved.