|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.ast.ASTree
coins.ast.ASTList
coins.ast.stmnt.CompoundStmnt
A linked-list of statements.
| Constructor Summary | |
CompoundStmnt(Stmnt s)
|
|
CompoundStmnt(Stmnt s,
CompoundStmnt rest)
|
|
| Method Summary | |
void |
accept(Visitor v)
Is a method for the visitor pattern. |
static CompoundStmnt |
append(CompoundStmnt block,
Stmnt s)
|
static CompoundStmnt |
concat(CompoundStmnt block1,
CompoundStmnt block2)
|
java.lang.String |
fileName()
Returns the file name including the statement. |
Stmnt |
get()
Returns the first element of the list. |
protected java.lang.String |
getTag()
Returns the type of this node. |
int |
lineNumber()
Returns the line number of the statement. |
CompoundStmnt |
next()
Returns the cdr part of the list. |
protected void |
putSeparator(java.lang.StringBuffer sbuf)
|
Stmnt |
simplify()
|
| Methods inherited from class coins.ast.ASTList |
append, concat, getLeft, getRight, head, rightToString, setHead, setLeft, setRight, setTail, subst, tail |
| Methods inherited from class coins.ast.ASTree |
toString, toString1 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CompoundStmnt(Stmnt s)
public CompoundStmnt(Stmnt s,
CompoundStmnt rest)
| Method Detail |
protected java.lang.String getTag()
ASTreetoString().
getTag in class ASTListpublic Stmnt get()
public CompoundStmnt next()
public Stmnt simplify()
public java.lang.String fileName()
Stmnt
fileName in interface Stmntpublic int lineNumber()
Stmnt
lineNumber in interface Stmntprotected void putSeparator(java.lang.StringBuffer sbuf)
putSeparator in class ASTree
public static CompoundStmnt append(CompoundStmnt block,
Stmnt s)
public static CompoundStmnt concat(CompoundStmnt block1,
CompoundStmnt block2)
public void accept(Visitor v)
ASTreeatXXX() on the given visitor, where
XXX is the class name of the node object.
accept in class ASTList
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||