|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectharpoon.IR.Tree.Tree
harpoon.IR.Tree.Stm
harpoon.IR.Tree.THROW
public class THROW
THROW objects are used to represent a thrown exception.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class harpoon.IR.Tree.Tree |
|---|
Tree.CloneCallback |
| Field Summary |
|---|
| Fields inherited from class harpoon.IR.Tree.Tree |
|---|
arrayFactory, child |
| Fields inherited from interface harpoon.IR.Tree.Typed |
|---|
DOUBLE, FLOAT, INT, LONG, POINTER |
| Constructor Summary | |
|---|---|
THROW(TreeFactory tf,
HCodeElement source,
Exp retex,
Exp handler)
Constructor |
|
| Method Summary | |
|---|---|
void |
accept(TreeVisitor v)
Accept a visitor |
Stm |
build(TreeFactory tf,
ExpList kids)
|
Exp |
getHandler()
The location of the exception-handling code |
Exp |
getRetex()
The exceptional value to return |
boolean |
isDoubleWord()
Returns true if the expression corresponds to a
64-bit value. |
boolean |
isFloatingPoint()
Returns true if the expression corresponds to a
floating-point value. |
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 |
setHandler(Exp handler)
Set the location of the exception-handling code |
void |
setRetex(Exp retex)
Set the exceptional value to return |
String |
toString()
|
int |
type()
Returns enumerated constant (INT, LONG, FLOAT, DOUBLE, or POINTER) corresponding to the type of the expression. |
| 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, kids, rename, replace, setChild, unlink |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public THROW(TreeFactory tf,
HCodeElement source,
Exp retex,
Exp handler)
retex - the exceptional value to returnhandler - the location of the exception-handling code to branch to| Method Detail |
|---|
public Exp getRetex()
public Exp getHandler()
public void setRetex(Exp retex)
public void setHandler(Exp handler)
public int kind()
TreeTree. The enumerated values are defined in
TreeKind.
kind in class Tree
public Stm build(TreeFactory tf,
ExpList kids)
build in class Stmpublic void accept(TreeVisitor v)
accept in class Tree
public Tree rename(TreeFactory tf,
TempMap tm,
Tree.CloneCallback cb)
TreeTEMP nodes
are renamed according to the supplied TempMap.
Note that Temps 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 Treepublic int type()
Typed
type in interface TypedType.POINTERpublic boolean isDoubleWord()
Typedtrue if the expression corresponds to a
64-bit value.
isDoubleWord in interface Typedpublic boolean isFloatingPoint()
Typedtrue if the expression corresponds to a
floating-point value.
isFloatingPoint in interface Typedpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||