|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--harpoon.IR.Tree.Tree | +--harpoon.IR.Tree.Stm | +--harpoon.IR.Tree.SEQ
SEQ
evaluates the left statement followed by the right
statement.
Nested Class Summary |
Nested classes inherited from class harpoon.IR.Tree.Tree |
Tree.CloneCallback |
Field Summary |
Fields inherited from class harpoon.IR.Tree.Tree |
arrayFactory, child |
Constructor Summary | |
SEQ(TreeFactory tf,
HCodeElement source,
Stm left,
Stm right)
Constructor. |
Method Summary | |
void |
accept(TreeVisitor v)
Accept a visitor |
Stm |
build(TreeFactory tf,
ExpList kids)
|
Stm |
getLeft()
Returns the statement to evaluate first. |
Stm |
getRight()
Returns the statement to evaluate last. |
ExpList |
kids()
Return a list of subexpressions of this Tree . |
int |
kind()
Return an integer enumeration of the kind of this Tree . |
Tree |
rename(TreeFactory tf,
TempMap tm,
Tree.CloneCallback cb)
Rename while cloning a subtree. |
void |
setLeft(Stm left)
Sets the statement to evaluate first. |
void |
setRight(Stm right)
Sets the statement to evaluate last. |
String |
toString()
|
Methods inherited from class harpoon.IR.Tree.Stm |
build, isNop, linearize, toStm |
Methods inherited from class harpoon.IR.Tree.Tree |
clone, clone, getChild, getFactory, getFirstChild, getID, getLineNumber, getParent, getSibling, getSourceFile, hashCode, rename, replace, setChild |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface harpoon.ClassFile.HDataElement |
getID, getSourceFile |
Constructor Detail |
public SEQ(TreeFactory tf, HCodeElement source, Stm left, Stm right)
Method Detail |
public Stm getLeft()
public Stm getRight()
public void setLeft(Stm left)
public void setRight(Stm right)
public ExpList kids()
Tree
Tree
.
kids
in class Tree
public int kind()
Tree
Tree
. The enumerated values are defined in
TreeKind
.
kind
in class Tree
public Stm build(TreeFactory tf, ExpList kids)
build
in class Stm
public void accept(TreeVisitor v)
accept
in class Tree
public Tree rename(TreeFactory tf, TempMap tm, Tree.CloneCallback cb)
Tree
TEMP
nodes
are renamed according to the supplied TempMap
.
Note that Temp
s not belonging to
this.getFactory().tempFactory()
are not affected.
The callback()
method of the supplied
CloneCallback
is invoked once on each subtree cloned,
starting from the leaves and working back to the root in a
post-order depth-first manner.
rename
in class Tree
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |