|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface that represents a function of an arbitrary number of parameters.
This interface also serves as a bridge between the functions obtained using
reflection and the typed functions (Function0..4) used in the rest of
the library.
| Method Summary | |
FunctionN |
bind(int p_index,
Object p_param)
Binds, at the specified index, the given parameter of this function of N parameters to return a new function of (N-1) parameters. |
FunctionN |
bind(Object[] p_params)
Binds the given M parameters of this function of N parameters to return a new function of (N-M) parameters. |
Object |
call()
Calls the function and returns the result. |
Object |
call(Object[] p_params)
Calls the function and returns the result. |
Function0 |
f0()
Returns this function as a function of no parameters. |
Function1 |
f1()
Returns this function as a function of 1 parameter. |
Function2 |
f2()
Returns this function as a function of 2 parameters. |
Function3 |
f3()
Returns this function as a function of 3 parameters. |
Function4 |
f4()
Returns this function as a function of 4 parameters. |
| Method Detail |
public Object call(Object[] p_params)
throws FunctionException
p_params - the parameters to the function.
FunctionException - thrown if an exception occurs during the function
call.
public Object call()
throws FunctionException
FunctionException - thrown if an exception occurs during the function
call.public FunctionN bind(Object[] p_params)
p_params - the M parameters to bind to the function.
public FunctionN bind(int p_index,
Object p_param)
p_index - the index at which to bind the parameter.p_param - the parameter to bind to the function.
public Function0 f0()
public Function1 f1()
public Function2 f2()
public Function3 f3()
public Function4 f4()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||