public abstract class ASTree
extends java.lang.Object
implements java.io.Serializable
getLeft()
and getRight()
returns null.Constructor and Description |
---|
ASTree() |
Modifier and Type | Method and Description |
---|---|
abstract void |
accept(Visitor v)
Is a method for the visitor pattern.
|
ASTree |
getLeft() |
ASTree |
getRight() |
protected java.lang.String |
getTag()
Returns the type of this node.
|
void |
setLeft(ASTree _left) |
void |
setRight(ASTree _right) |
java.lang.String |
toString() |
public ASTree getLeft()
public ASTree getRight()
public void setLeft(ASTree _left)
public void setRight(ASTree _right)
public abstract void accept(Visitor v) throws CompileError
atXXX()
on the given visitor, where
XXX
is the class name of the node object.CompileError
public java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.String getTag()
toString()
.