Package org.antlr.v4.tool.ast
Class GrammarRootAST
java.lang.Object
org.antlr.runtime.tree.BaseTree
org.antlr.runtime.tree.CommonTree
org.antlr.v4.tool.ast.GrammarAST
org.antlr.v4.tool.ast.GrammarASTWithOptions
org.antlr.v4.tool.ast.GrammarRootAST
- All Implemented Interfaces:
org.antlr.runtime.tree.Tree
-
Field Summary
FieldsModifier and TypeFieldDescriptionintbooleanfinal org.antlr.runtime.TokenStreamTrack stream used to create this treeFields inherited from class org.antlr.v4.tool.ast.GrammarASTWithOptions
optionsFields inherited from class org.antlr.v4.tool.ast.GrammarAST
atnState, g, textOverrideFields inherited from class org.antlr.runtime.tree.CommonTree
childIndex, parent, startIndex, stopIndex, tokenFields inherited from class org.antlr.runtime.tree.BaseTree
childrenFields inherited from interface org.antlr.runtime.tree.Tree
INVALID_NODE -
Constructor Summary
ConstructorsConstructorDescriptionGrammarRootAST(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) -
Method Summary
Methods inherited from class org.antlr.v4.tool.ast.GrammarASTWithOptions
getNumberOfOptions, getOptionAST, getOptions, setOptionMethods inherited from class org.antlr.v4.tool.ast.GrammarAST
deleteChild, dupTree, getAllChildrenWithType, getAltLabel, getChildrenAsArray, getFirstDescendantWithType, getFirstDescendantWithType, getNodesWithType, getNodesWithType, getNodesWithTypePreorderDFS, getNodesWithTypePreorderDFS_, getNodeWithTokenIndex, getOutermostAltNode, setText, setType, toTokenStringMethods inherited from class org.antlr.runtime.tree.CommonTree
getCharPositionInLine, getChildIndex, getLine, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toStringMethods inherited from class org.antlr.runtime.tree.BaseTree
addChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, freshenParentAndChildIndexesDeeply, freshenParentAndChildIndexesDeeply, getAncestor, getAncestors, getChild, getChildCount, getChildren, getFirstChildWithType, hasAncestor, insertChild, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTree
-
Field Details
-
defaultOptions
-
grammarType
public int grammarType -
hasErrors
public boolean hasErrors -
tokenStream
public final org.antlr.runtime.TokenStream tokenStreamTrack stream used to create this tree -
cmdLineOptions
-
fileName
-
-
Constructor Details
-
GrammarRootAST
-
GrammarRootAST
public GrammarRootAST(org.antlr.runtime.Token t, org.antlr.runtime.TokenStream tokenStream) -
GrammarRootAST
public GrammarRootAST(int type, org.antlr.runtime.Token t, org.antlr.runtime.TokenStream tokenStream) -
GrammarRootAST
public GrammarRootAST(int type, org.antlr.runtime.Token t, String text, org.antlr.runtime.TokenStream tokenStream)
-
-
Method Details
-
getGrammarName
-
getOptionString
- Overrides:
getOptionStringin classGrammarASTWithOptions
-
visit
- Overrides:
visitin classGrammarAST
-
dupNode
- Specified by:
dupNodein interfaceorg.antlr.runtime.tree.Tree- Specified by:
dupNodein classGrammarASTWithOptions
-