|
|||||||||
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.INVOCATION
public abstract class INVOCATION
INVOCATION
objects are statements which stand for
procedure calls. The return value of the CALL
is
stored in retval
. If the call throws an exception,
the exception object will be placed in retex
.
The retval
field will be null
if the
called procedure has void return type.
CALL
,
CALL
,
NATIVECALL
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 |
Constructor Summary | |
---|---|
protected |
INVOCATION(TreeFactory tf,
HCodeElement source,
TEMP retval,
Exp func,
ExpList args,
int addlArgs)
Constructor. |
Method Summary | |
---|---|
abstract void |
accept(TreeVisitor v)
Accept a visitor. |
ExpList |
getArgs()
Returns a list of subexpressions for the function arguments. |
Exp |
getFunc()
Returns an expression for the function reference to invoke. |
TEMP |
getRetval()
Returns the expression indicating the destination of the return value. |
abstract boolean |
isNative()
|
ExpList |
kids()
Return a list of subexpressions of this Tree . |
void |
setArgs(ExpList args)
Sets the function argument list. |
void |
setFunc(Exp func)
Sets the function reference expression. |
void |
setRetval(TEMP retval)
Sets the expression indicating the destination of the return value. |
Methods inherited from class harpoon.IR.Tree.Stm |
---|
build, build, isNop, linearize, toStm |
Methods inherited from class harpoon.IR.Tree.Tree |
---|
clone, clone, getChild, getFactory, getFirstChild, getID, getLineNumber, getParent, getSibling, getSourceFile, hashCode, kind, rename, rename, replace, setChild, unlink |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected INVOCATION(TreeFactory tf, HCodeElement source, TEMP retval, Exp func, ExpList args, int addlArgs)
retval
- Expression indicating the destination of the return
value. The retval
is null
for
void
functions.func
- A subexpression which evaluates to the function
reference to invoke.args
- Subexpressions for the arguments to the function.Method Detail |
---|
public TEMP getRetval()
null
for void
functions.
public Exp getFunc()
public ExpList getArgs()
public ExpList kids()
Tree
Tree
.
kids
in class Tree
public void setRetval(TEMP retval)
retval
- null
for void
functions,
non-null
otherwise.public void setFunc(Exp func)
public void setArgs(ExpList args)
public abstract boolean isNative()
public abstract void accept(TreeVisitor v)
Tree
accept
in class Tree
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |