Module dev.metaschema.core
Interface IFunctionExecutor
- All Known Implementing Classes:
CastFunction,NumericFunction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
This functional interface provides a dispatch method for executing a function
call.
-
Method Summary
-
Method Details
-
execute
@NonNull ISequence<?> execute(@NonNull IFunction function, @NonNull List<ISequence<?>> arguments, @NonNull DynamicContext dynamicContext, @Nullable IItem focus) Execute the provided function using the provided arguments, dynamic context, and focus.- Parameters:
function- the signature of the functionarguments- the function argumentsdynamicContext- the dynamic evaluation contextfocus- the current focus- Returns:
- a sequence containing the result of the execution
- Throws:
MetapathException- if an error occurred while executing the function
-