public abstract class ASTBase extends java.lang.Object implements AST
Constructor and Description |
---|
ASTBase() |
Modifier and Type | Method and Description |
---|---|
static void |
accept(AST[] trees,
ASTVisitor visitor)
Visit a sequence of abstract syntax trees.
|
static void |
accept(AST[] trees,
ASTVisitorOld visitor)
Visit a sequence of abstract syntax trees.
|
void |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
void |
accept(ASTVisitorOld visitor)
Accept visitor for a visit.
|
void |
acceptChildren(ASTVisitor visitor)
Accept visitor for a visit to the children of this node.
|
void |
print(java.io.PrintWriter out)
Print tree on writer (including command annotations).
|
void |
printCore(java.io.PrintWriter out)
Print tree on writer (excluding command annotations).
|
java.lang.String |
toString()
Get string representation of tree (including command annotations).
|
java.lang.String |
toStringCore()
Get string representation of tree (excluding command annotations).
|
public void accept(ASTVisitorOld visitor)
public void accept(ASTVisitor visitor)
public void acceptChildren(ASTVisitor visitor)
acceptChildren
in interface AST
visitor
- the visitor who is accepted by the children of this node.public static final void accept(AST[] trees, ASTVisitorOld visitor)
trees
- the abstract syntax trees that are to be visited.visitor
- the visitor to visit the treespublic static final void accept(AST[] trees, ASTVisitor visitor)
trees
- the abstract syntax trees that are to be visited.visitor
- the visitor to visit the treespublic final java.lang.String toString()
public final java.lang.String toStringCore()
toStringCore
in interface AST
public final void print(java.io.PrintWriter out)