Package | Description |
---|---|
antlr | |
antlr.collections | |
antlr.collections.impl | |
antlr.debug.misc |
Modifier and Type | Class and Description |
---|---|
class |
ASTNULLType
There is only one instance of this class
|
class |
BaseAST
A Child-Sibling Tree.
|
class |
CommonAST
Common AST node implementation
|
class |
CommonASTWithHiddenTokens
A CommonAST whose initialization copies hidden token
information from the Token used to create a node.
|
class |
ParseTree |
class |
ParseTreeRule |
class |
ParseTreeToken |
Modifier and Type | Field and Description |
---|---|
protected AST |
TreeParser._retTree
Where did this rule leave off parsing; avoids a return parameter
|
AST |
ASTPair.child |
protected AST |
ASTIterator.cursor |
AST |
NoViableAltException.node |
AST |
MismatchedTokenException.node |
protected AST |
ASTIterator.original |
protected AST |
TreeParser.returnAST
AST return value for a rule is squirreled away here
|
protected AST |
Parser.returnAST
AST return value for a rule is squirreled away here
|
AST |
ASTPair.root |
Modifier and Type | Method and Description |
---|---|
AST |
ASTFactory.create()
Create a new empty AST node; if the user did not specify
an AST node type, then create a default one: CommonAST.
|
AST |
ASTFactory.create(AST tr)
Create a new empty AST node; if the user did not specify
an AST node type, then create a default one: CommonAST.
|
protected AST |
ASTFactory.create(java.lang.Class c) |
AST |
ASTFactory.create(int type) |
AST |
ASTFactory.create(int type,
java.lang.String txt) |
AST |
ASTFactory.create(int type,
java.lang.String txt,
java.lang.String className)
Create an AST node with the token type and text passed in, but
with a specific Java object type.
|
AST |
ASTFactory.create(java.lang.String className) |
AST |
ASTFactory.create(Token tok) |
AST |
ASTFactory.create(Token tok,
java.lang.String className)
ANTLR generates reference to this when you reference a token
that has a specified heterogeneous AST node type.
|
protected AST |
ASTFactory.createUsingCtor(Token token,
java.lang.String className) |
AST |
ASTFactory.dup(AST t)
Copy a single node with same Java AST objec type.
|
AST |
ASTFactory.dupList(AST t)
Duplicate tree including siblings of root.
|
AST |
ASTFactory.dupTree(AST t)
Duplicate a tree, assuming this is a root node of a tree--
duplicate that node and what's below; ignore siblings of root node.
|
AST |
TreeParser.getAST()
Get the AST return value squirreled away in the parser
|
AST |
Parser.getAST()
Get the AST return value squirreled away in the parser
|
AST |
BaseAST.getFirstChild()
Get the first child of this node; null if not children
|
AST |
ASTNULLType.getFirstChild() |
AST |
BaseAST.getNextSibling()
Get the next sibling in line after this one
|
AST |
ASTNULLType.getNextSibling() |
AST |
ASTFactory.make(AST[] nodes)
Make a tree from a list of nodes.
|
AST |
ASTFactory.make(ASTArray nodes)
Make a tree from a list of nodes, where the nodes are contained
in an ASTArray object
|
AST |
ASTIterator.next(AST template)
Find the next subtree with structure and token types equal to
those of 'template'.
|
Modifier and Type | Method and Description |
---|---|
void |
ASTFactory.addASTChild(ASTPair currentAST,
AST child)
Add a child to the current AST
|
void |
BaseAST.addChild(AST node)
Add a node to the end of the child list for this node
|
void |
ASTNULLType.addChild(AST c) |
AST |
ASTFactory.create(AST tr)
Create a new empty AST node; if the user did not specify
an AST node type, then create a default one: CommonAST.
|
AST |
ASTFactory.dup(AST t)
Copy a single node with same Java AST objec type.
|
AST |
ASTFactory.dupList(AST t)
Duplicate tree including siblings of root.
|
AST |
ASTFactory.dupTree(AST t)
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 |
BaseAST.equals(AST t)
Is node t equal to this in terms of token type and text?
|
boolean |
ASTNULLType.equals(AST t) |
boolean |
BaseAST.equalsList(AST t)
Is t an exact structural and equals() match of this tree.
|
boolean |
ASTNULLType.equalsList(AST t) |
boolean |
BaseAST.equalsListPartial(AST sub)
Is 'sub' a subtree of this list?
The siblings of the root are NOT ignored.
|
boolean |
ASTNULLType.equalsListPartial(AST t) |
boolean |
BaseAST.equalsTree(AST t)
Is tree rooted at 'this' equal to 't'? The siblings
of 'this' are ignored.
|
boolean |
ASTNULLType.equalsTree(AST t) |
boolean |
BaseAST.equalsTreePartial(AST sub)
Is 't' a subtree of the tree rooted at 'this'? The siblings
of 'this' are ignored.
|
boolean |
ASTNULLType.equalsTreePartial(AST t) |
ASTEnumeration |
BaseAST.findAll(AST target)
Walk the tree looking for all exact subtree matches.
|
ASTEnumeration |
ASTNULLType.findAll(AST tree) |
ASTEnumeration |
BaseAST.findAllPartial(AST sub)
Walk the tree looking for all subtrees.
|
ASTEnumeration |
ASTNULLType.findAllPartial(AST subtree) |
abstract void |
BaseAST.initialize(AST t) |
void |
CommonAST.initialize(AST t) |
void |
ASTNULLType.initialize(AST t) |
void |
CommonASTWithHiddenTokens.initialize(AST t) |
void |
ParseTree.initialize(AST ast) |
boolean |
ASTIterator.isSubtree(AST t,
AST sub)
Is 'sub' a subtree of 't' beginning at the root?
|
AST |
ASTFactory.make(AST[] nodes)
Make a tree from a list of nodes.
|
void |
ASTFactory.makeASTRoot(ASTPair currentAST,
AST root)
Make an AST the root of current AST
|
void |
TreeParser.match(AST t,
BitSet b)
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 |
TreeParser.match(AST t,
int ttype) |
protected void |
TreeParser.matchNot(AST t,
int ttype) |
AST |
ASTIterator.next(AST template)
Find the next subtree with structure and token types equal to
those of 'template'.
|
void |
BaseAST.setFirstChild(AST c) |
void |
ASTNULLType.setFirstChild(AST c) |
void |
BaseAST.setNextSibling(AST n) |
void |
ASTNULLType.setNextSibling(AST n) |
void |
TreeParser.traceIn(java.lang.String rname,
AST t) |
void |
TreeParser.traceOut(java.lang.String rname,
AST t) |
void |
DumpASTVisitor.visit(AST node) |
void |
ASTVisitor.visit(AST node) |
Constructor and Description |
---|
ASTIterator(AST t) |
MismatchedTokenException(java.lang.String[] tokenNames_,
AST node_,
BitSet set_,
boolean matchNot) |
MismatchedTokenException(java.lang.String[] tokenNames_,
AST node_,
int expecting_,
boolean matchNot) |
MismatchedTokenException(java.lang.String[] tokenNames_,
AST node_,
int lower,
int upper_,
boolean matchNot) |
NoViableAltException(AST t) |
Modifier and Type | Method and Description |
---|---|
AST |
AST.getFirstChild()
Get the first child of this node; null if no children
|
AST |
AST.getNextSibling()
Get the next sibling in line after this one
|
AST |
ASTEnumeration.nextNode() |
Modifier and Type | Method and Description |
---|---|
void |
AST.addChild(AST c)
Add a (rightmost) child to this node
|
boolean |
AST.equals(AST t) |
boolean |
AST.equalsList(AST t) |
boolean |
AST.equalsListPartial(AST t) |
boolean |
AST.equalsTree(AST t) |
boolean |
AST.equalsTreePartial(AST t) |
ASTEnumeration |
AST.findAll(AST tree) |
ASTEnumeration |
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.
|
Modifier and Type | Field and Description |
---|---|
AST[] |
ASTArray.array |
Modifier and Type | Method and Description |
---|---|
AST |
ASTEnumerator.nextNode() |
Modifier and Type | Method and Description |
---|---|
ASTArray |
ASTArray.add(AST node) |
Modifier and Type | Field and Description |
---|---|
(package private) AST |
JTreeASTModel.root |
Constructor and Description |
---|
ASTFrame(java.lang.String lab,
AST r) |
JTreeASTModel(AST t) |