public class GrammarRootAST extends GrammarASTWithOptions
| Modifier and Type | Field | 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
|
childIndex, parent, startIndex, stopIndex, tokenatnState, g, textOverrideoptions| Constructor | Description |
|---|---|
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) |
|
GrammarRootAST(GrammarRootAST node) |
| Modifier and Type | Method | Description |
|---|---|---|
GrammarRootAST |
dupNode() |
|
String |
getGrammarName() |
|
String |
getOptionString(String key) |
|
Object |
visit(GrammarASTVisitor v) |
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, toTokenStringgetNumberOfOptions, getOptionAST, getOptions, setOptionpublic 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 class GrammarASTWithOptionsCopyright © 1992–2019 ANTLR. All rights reserved.