public abstract class ASTBase extends java.lang.Object implements AST
Constructor and Description |
---|
ASTBase() |
Modifier and Type | Method and Description |
---|---|
void |
print(java.io.PrintWriter out)
Prints text representation on out (without new line termination).
|
abstract void |
printCore(java.io.PrintWriter out)
Prints text representation of tree on out (without new line termination).
|
void |
printParens(java.io.PrintWriter out)
Prints text representation on out (without new line termination)
with parentheses around the whole expression.
|
java.lang.String |
toString()
returns string representation of tree
|
public void print(java.io.PrintWriter out)
public void printParens(java.io.PrintWriter out)
printParens
in interface AST
out
- the stream on which the text is writtenpublic abstract void printCore(java.io.PrintWriter out)