org.antlr.runtime.tree.Tree
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, token
atnState, g, textOverride
options
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, 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
getNumberOfOptions, getOptionAST, getOptions, setOption
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–2018 ANTLR. All rights reserved.