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
|
options
atnState, 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, setOption
deleteChild, dupTree, getAllChildrenWithType, getAltLabel, getChildrenAsArray, getFirstDescendantWithType, getFirstDescendantWithType, getNodesWithType, getNodesWithType, getNodesWithTypePreorderDFS_, getNodesWithTypePreorderDFS, getNodeWithTokenIndex, getOutermostAltNode, setText, setType, toTokenString
getCharPositionInLine, getChildIndex, getLine, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toString
addChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, freshenParentAndChildIndexesDeeply, freshenParentAndChildIndexesDeeply, getAncestor, getAncestors, getChild, getChildCount, getChildren, getFirstChildWithType, hasAncestor, insertChild, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTree
public 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 GrammarASTWithOptions
public Object visit(GrammarASTVisitor v)
visit
in class GrammarAST
public GrammarRootAST dupNode()
dupNode
in interface org.antlr.runtime.tree.Tree
dupNode
in class GrammarASTWithOptions
Copyright © 1992–2020 ANTLR. All rights reserved.