|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.ast.ASTree
coins.ast.ASTList
A linked list. The right subtree must be an ASTList object or null.
| Constructor Summary | |
ASTList(ASTree _head)
|
|
ASTList(ASTree _head,
ASTList _tail)
|
|
| Method Summary | |
void |
accept(Visitor v)
Is a method for the visitor pattern. |
static ASTList |
append(ASTList a,
ASTree b)
Appends an object to a list. |
static ASTList |
concat(ASTList a,
ASTList b)
Concatenates two lists. |
ASTree |
getLeft()
|
ASTree |
getRight()
|
protected java.lang.String |
getTag()
Returns the type of this node. |
ASTree |
head()
Returns the car part of the list. |
protected void |
rightToString(java.lang.StringBuffer sbuf,
ASTree _right)
|
void |
setHead(ASTree _head)
|
void |
setLeft(ASTree _left)
|
void |
setRight(ASTree _right)
|
void |
setTail(ASTList _tail)
|
boolean |
subst(ASTree newObj,
ASTree oldObj)
|
ASTList |
tail()
Returns the cdr part of the list. |
| Methods inherited from class coins.ast.ASTree |
putSeparator, toString, toString1 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ASTList(ASTree _head,
ASTList _tail)
public ASTList(ASTree _head)
| Method Detail |
public ASTree getLeft()
getLeft in class ASTreepublic ASTree getRight()
getRight in class ASTreepublic void setLeft(ASTree _left)
setLeft in class ASTreepublic void setRight(ASTree _right)
setRight in class ASTreepublic ASTree head()
public void setHead(ASTree _head)
public ASTList tail()
public void setTail(ASTList _tail)
public void accept(Visitor v)
ASTreeatXXX() on the given visitor, where
XXX is the class name of the node object.
accept in class ASTreeprotected java.lang.String getTag()
ASTreetoString().
getTag in class ASTree
protected void rightToString(java.lang.StringBuffer sbuf,
ASTree _right)
rightToString in class ASTree
public boolean subst(ASTree newObj,
ASTree oldObj)
public static ASTList append(ASTList a,
ASTree b)
public static ASTList concat(ASTList a,
ASTList b)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||