Uses of Interface
antlr.collections.AST
Packages that use AST
-
Uses of AST in antlr
Modifier and TypeClassDescriptionclassThere is only one instance of this classclassA Child-Sibling Tree.classCommon AST node implementationclassA CommonAST whose initialization copies hidden token information from the Token used to create a node.classclassclassModifier and TypeFieldDescriptionprotected ASTTreeParser._retTreeWhere did this rule leave off parsing; avoids a return parameterASTPair.childprotected ASTASTIterator.cursorMismatchedTokenException.nodeNoViableAltException.nodeprotected ASTASTIterator.originalprotected ASTParser.returnASTAST return value for a rule is squirreled away hereprotected ASTTreeParser.returnASTAST return value for a rule is squirreled away hereASTPair.rootModifier 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 ASTprotected ASTASTFactory.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 TypeMethodDescriptionvoidASTFactory.addASTChild(ASTPair currentAST, AST child) Add a child to the current ASTvoidvoidAdd 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.booleanbooleanIs node t equal to this in terms of token type and text?booleanASTNULLType.equalsList(AST t) booleanBaseAST.equalsList(AST t) Is t an exact structural and equals() match of this tree.booleanASTNULLType.equalsListPartial(AST t) booleanBaseAST.equalsListPartial(AST sub) Is 'sub' a subtree of this list? The siblings of the root are NOT ignored.booleanASTNULLType.equalsTree(AST t) booleanBaseAST.equalsTree(AST t) Is tree rooted at 'this' equal to 't'? The siblings of 'this' are ignored.booleanASTNULLType.equalsTreePartial(AST t) booleanBaseAST.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.voidASTNULLType.initialize(AST t) abstract voidBaseAST.initialize(AST t) voidCommonAST.initialize(AST t) voidCommonASTWithHiddenTokens.initialize(AST t) voidParseTree.initialize(AST ast) booleanIs 'sub' a subtree of 't' beginning at the root?Make a tree from a list of nodes.voidASTFactory.makeASTRoot(ASTPair currentAST, AST root) Make an AST the root of current ASTprotected voidvoidMake 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 voidFind the next subtree with structure and token types equal to those of 'template'.voidASTNULLType.setFirstChild(AST c) voidBaseAST.setFirstChild(AST c) voidASTNULLType.setNextSibling(AST n) voidBaseAST.setNextSibling(AST n) voidvoidvoidvoidModifierConstructorDescriptionASTIterator(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 TypeMethodDescriptionvoidAdd a (rightmost) child to this nodebooleanbooleanAST.equalsList(AST t) booleanAST.equalsListPartial(AST t) booleanAST.equalsTree(AST t) booleanAST.equalsTreePartial(AST t) AST.findAllPartial(AST subtree) voidAST.initialize(AST t) voidAST.setFirstChild(AST c) Set the first child of a node.voidAST.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