Uses of Interface
antlr.collections.AST
Packages that use AST
-
Uses of AST in antlr
Modifier and TypeClassDescriptionclass
There is only one instance of this classclass
A Child-Sibling Tree.class
Common AST node implementationclass
A CommonAST whose initialization copies hidden token information from the Token used to create a node.class
class
class
Modifier and TypeFieldDescriptionprotected AST
TreeParser._retTree
Where did this rule leave off parsing; avoids a return parameterASTPair.child
protected AST
ASTIterator.cursor
MismatchedTokenException.node
NoViableAltException.node
protected AST
ASTIterator.original
protected AST
Parser.returnAST
AST return value for a rule is squirreled away hereprotected AST
TreeParser.returnAST
AST return value for a rule is squirreled away hereASTPair.root
Modifier and TypeMethodDescriptionASTFactory.create()
Create a new empty AST node; if the user did not specify an AST node type, then create a default one: CommonAST.ASTFactory.create
(int type) Create an AST node with the token type and text passed in, but with a specific Java object type.Create a new empty AST node; if the user did not specify an AST node type, then create a default one: CommonAST.ANTLR generates reference to this when you reference a token that has a specified heterogeneous AST node type.protected AST
protected AST
ASTFactory.createUsingCtor
(Token token, String className) Copy a single node with same Java AST objec type.Duplicate tree including siblings of root.Duplicate a tree, assuming this is a root node of a tree-- duplicate that node and what's below; ignore siblings of root node.Parser.getAST()
Get the AST return value squirreled away in the parserTreeParser.getAST()
Get the AST return value squirreled away in the parserASTNULLType.getFirstChild()
BaseAST.getFirstChild()
Get the first child of this node; null if not childrenASTNULLType.getNextSibling()
BaseAST.getNextSibling()
Get the next sibling in line after this oneMake a tree from a list of nodes.Make a tree from a list of nodes, where the nodes are contained in an ASTArray objectFind the next subtree with structure and token types equal to those of 'template'.Modifier and TypeMethodDescriptionvoid
ASTFactory.addASTChild
(ASTPair currentAST, AST child) Add a child to the current ASTvoid
void
Add a node to the end of the child list for this nodeCreate a new empty AST node; if the user did not specify an AST node type, then create a default one: CommonAST.Copy a single node with same Java AST objec type.Duplicate tree including siblings of root.Duplicate a tree, assuming this is a root node of a tree-- duplicate that node and what's below; ignore siblings of root node.boolean
boolean
Is node t equal to this in terms of token type and text?boolean
ASTNULLType.equalsList
(AST t) boolean
BaseAST.equalsList
(AST t) Is t an exact structural and equals() match of this tree.boolean
ASTNULLType.equalsListPartial
(AST t) boolean
BaseAST.equalsListPartial
(AST sub) Is 'sub' a subtree of this list? The siblings of the root are NOT ignored.boolean
ASTNULLType.equalsTree
(AST t) boolean
BaseAST.equalsTree
(AST t) Is tree rooted at 'this' equal to 't'? The siblings of 'this' are ignored.boolean
ASTNULLType.equalsTreePartial
(AST t) boolean
BaseAST.equalsTreePartial
(AST sub) Is 't' a subtree of the tree rooted at 'this'? The siblings of 'this' are ignored.Walk the tree looking for all exact subtree matches.ASTNULLType.findAllPartial
(AST subtree) BaseAST.findAllPartial
(AST sub) Walk the tree looking for all subtrees.void
ASTNULLType.initialize
(AST t) abstract void
BaseAST.initialize
(AST t) void
CommonAST.initialize
(AST t) void
CommonASTWithHiddenTokens.initialize
(AST t) void
ParseTree.initialize
(AST ast) boolean
Is 'sub' a subtree of 't' beginning at the root?Make a tree from a list of nodes.void
ASTFactory.makeASTRoot
(ASTPair currentAST, AST root) Make an AST the root of current ASTprotected void
void
Make sure current lookahead symbol matches the given set Throw an exception upon mismatch, which is catch by either the error handler or by the syntactic predicate.protected void
Find the next subtree with structure and token types equal to those of 'template'.void
ASTNULLType.setFirstChild
(AST c) void
BaseAST.setFirstChild
(AST c) void
ASTNULLType.setNextSibling
(AST n) void
BaseAST.setNextSibling
(AST n) void
void
void
void
ModifierConstructorDescriptionASTIterator
(AST t) MismatchedTokenException
(String[] tokenNames_, AST node_, int expecting_, boolean matchNot) MismatchedTokenException
(String[] tokenNames_, AST node_, int lower, int upper_, boolean matchNot) MismatchedTokenException
(String[] tokenNames_, AST node_, BitSet set_, boolean matchNot) -
Uses of AST in antlr.collections
Methods in antlr.collections that return ASTModifier and TypeMethodDescriptionAST.getFirstChild()
Get the first child of this node; null if no childrenAST.getNextSibling()
Get the next sibling in line after this oneASTEnumeration.nextNode()
Methods in antlr.collections with parameters of type ASTModifier and TypeMethodDescriptionvoid
Add a (rightmost) child to this nodeboolean
boolean
AST.equalsList
(AST t) boolean
AST.equalsListPartial
(AST t) boolean
AST.equalsTree
(AST t) boolean
AST.equalsTreePartial
(AST t) AST.findAllPartial
(AST subtree) void
AST.initialize
(AST t) void
AST.setFirstChild
(AST c) Set the first child of a node.void
AST.setNextSibling
(AST n) Set the next sibling after this one. -
Uses of AST in antlr.collections.impl
Fields in antlr.collections.impl declared as ASTMethods in antlr.collections.impl that return ASTMethods in antlr.collections.impl with parameters of type AST -
Uses of AST in antlr.debug.misc
Fields in antlr.debug.misc declared as ASTConstructors in antlr.debug.misc with parameters of type AST