|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcetus.hir.Expression
cetus.hir.FunctionCall
public class FunctionCall
Represents a function or method call.
| Field Summary |
|---|
| Fields inherited from class cetus.hir.Expression |
|---|
children, needs_parens, object_print_method, parent |
| Constructor Summary | |
|---|---|
FunctionCall(Expression function)
Creates a function call. |
|
FunctionCall(Expression function,
java.util.List args)
Creates a function call. |
|
| Method Summary | |
|---|---|
void |
addArgument(Expression expr)
|
static void |
defaultPrint(FunctionCall call,
java.io.OutputStream stream)
Prints a function call to a stream. |
Expression |
getArgument(int n)
|
java.util.List |
getArguments()
|
Expression |
getName()
|
int |
getNumArguments()
Returns the number of arguments being passed to this function call. |
Procedure |
getProcedure()
Returns the Procedure object for the function that is being called. |
java.util.List |
getReturnType()
|
void |
setArgument(int n,
Expression expr)
|
void |
setArguments(java.util.List args)
|
static void |
setClassPrintMethod(java.lang.reflect.Method m)
Overrides the class print method, so that all subsequently created objects will use the supplied method. |
void |
setFunction(Expression expr)
|
java.lang.String |
toString()
Every expression class should override toString method. |
| Methods inherited from class cetus.hir.Expression |
|---|
clone, compareTo, equals, equals2, findExpression, getChildren, getParent, getStatement, needsParens, print, printSelf, removeChild, setChild, setParens, setParent, setPrintMethod, swapWith, verify |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FunctionCall(Expression function)
function - An expression that evaluates to a function.
public FunctionCall(Expression function,
java.util.List args)
function - An expression that evaluates to a function.args - A list of arguments to the function.| Method Detail |
|---|
public void addArgument(Expression expr)
public static void defaultPrint(FunctionCall call,
java.io.OutputStream stream)
call - The call to print.stream - The stream on which to print the call.public java.lang.String toString()
Expression
toString in class Expressionpublic Expression getArgument(int n)
public java.util.List getArguments()
public Expression getName()
public int getNumArguments()
public Procedure getProcedure()
public java.util.List getReturnType()
public void setArgument(int n,
Expression expr)
public void setArguments(java.util.List args)
public static void setClassPrintMethod(java.lang.reflect.Method m)
m - The new print method.public void setFunction(Expression expr)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||