|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.millscript.vm.FunctionCall
public class FunctionCall
This class represents a function call.
| Constructor Summary | |
|---|---|
FunctionCall(Engine e)
Constructs a new function call, which will use the specified engine to invoke the function. |
|
FunctionCall(Engine e,
Function f)
Constructs a new function call, which will invoke the specified function on the specified engine. |
|
FunctionCall(Engine e,
Package p,
java.lang.String sym)
Constructs a new function call, which will invoke the specified function on the specified engine. |
|
| Method Summary | |
|---|---|
void |
addArg(java.lang.Object o)
Adds the specified object as the next argument for the function. |
void |
addArg(Package p,
java.lang.String sym)
Adds the value of the specified symbol in the specified package as the next argument for the function. |
org.millscript.commons.util.ListIterator<java.lang.Object> |
invoke()
Invokes this function call, calling the defined function with the specified arguments. |
void |
invoke0()
Invokes this function call expecting the function to return no results. |
java.lang.Object |
invoke1()
Invokes this function call expecting the function to return a single result. |
org.millscript.commons.util.IList<java.lang.Object> |
invokeListResults(boolean mutable)
Invokes this function call, calling the defined function with the specified arguments. |
void |
setFunction(Function f)
Sets the function we want to invoke. |
void |
setFunction(Package p,
java.lang.String sym)
Sets the function we want to invoke to the specified symbol in the specified package. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FunctionCall(Engine e)
e - the engine to use to invoke the function.
public FunctionCall(Engine e,
Function f)
e - the engine to use to invoke the function.f - the function which will be invoked.
public FunctionCall(Engine e,
Package p,
java.lang.String sym)
e - the engine to use to invoke the function.p - the package which contains the function.sym - the symbol of the function to invoke.| Method Detail |
|---|
public void addArg(java.lang.Object o)
o - the next argument.
public void addArg(Package p,
java.lang.String sym)
p - the package which contains the symbol.sym - the symbol of the next argument.public org.millscript.commons.util.ListIterator<java.lang.Object> invoke()
public org.millscript.commons.util.IList<java.lang.Object> invokeListResults(boolean mutable)
mutable - a boolean to indicate if you want the returned list to
be mutable or not. If true the returned list will be
mutable, otherwise immutable.
public void invoke0()
public java.lang.Object invoke1()
public void setFunction(Function f)
f - the function this function call will invoke
public void setFunction(Package p,
java.lang.String sym)
p - the package which contains the function.sym - the symbol of the function to invoke.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||