Package nz.org.riskscape.engine.function
Interface JavaFunction.Delegate
- Enclosing class:
- JavaFunction
-
Method Summary
Modifier and TypeMethodDescriptionApply the arguments to produce the result.default ArgumentList
Called byJavaFunction.getArguments()
to allow the delegate the option to provide anArgumentList
which enables keyword arguments to be used when the function is called.validate()
-
Method Details
-
apply
Apply the arguments to produce the result.
The result does not need to match the
JavaFunction
returnType exactly as it will be coerced byJavaFunction.call(java.util.List)
before being returned. -
validate
-
getArguments
Called by
JavaFunction.getArguments()
to allow the delegate the option to provide anArgumentList
which enables keyword arguments to be used when the function is called.If Delegates do not wish to provide the argument list the default implementation should not be overridden.
- Returns:
- argument list or null
-