public interface AST
Modifier and Type | Method and Description |
---|---|
AST |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
void |
print(java.io.PrintWriter out)
Prints text representation of tree on out (without new line termination).
|
void |
printCore(java.io.PrintWriter out)
Like print, but parentheses around outer expression are not printed.
|
void |
printParens(java.io.PrintWriter out)
Like print, but parentheses around outer expression are always printed.
|
java.lang.String |
toString()
returns string representation of tree
|
AST accept(ASTVisitor visitor)
visitor
- the visitor who is accepted by this node.void print(java.io.PrintWriter out)
out
- the stream on which the text is writtenvoid printParens(java.io.PrintWriter out)
out
- the stream on which the text is writtenvoid printCore(java.io.PrintWriter out)
out
- the stream on which the text is writtenjava.lang.String toString()
toString
in class java.lang.Object