|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectorg.op4j.functions.Function<T,R>
org.op4j.functions.ExpressionFunction<T,R>
public final class ExpressionFunction<T,R>
Base class for all functions returned by Fn.on(...) expressions.
This class should NEVER be used directly, nor extended by user-defined functions.
Constructor Summary | |
---|---|
ExpressionFunction(Target target)
|
Method Summary | |
---|---|
R |
execute(T input,
ExecCtx ctx)
Executes the function on the current target object, which is passed as the input parameter. |
Methods inherited from class org.op4j.functions.Function |
---|
execute |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExpressionFunction(Target target)
Method Detail |
---|
public R execute(T input, ExecCtx ctx) throws Exception
IFunction
Executes the function on the current target object, which is passed
as the input parameter. The ExecCtx
parameter
provides some metadata related to the execution, like the index in
an iteration.
The execution of a function can throw any exception.
If you intend to call the execute method directly on any of
your functions (outside an op4j expression), you might prefer using
Function.execute(Object)
instead.
input
- the target object on which the function is to be executedctx
- the context (metadata) for the function execution
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |