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.
@FunctionalInterface public interface IFunctionExecutor
This functional interface provides a dispatch method for executing a function call.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ISequence<?>
execute(IFunction function, List<ISequence<?>> arguments, DynamicContext dynamicContext, IItem focus)
Execute the provided function using the provided arguments, dynamic context, and focus.
-
-
-
Method Detail
-
execute
@NonNull ISequence<?> execute(@NonNull IFunction function, @NonNull List<ISequence<?>> arguments, @NonNull DynamicContext dynamicContext, @Nullable IItem focus) throws MetapathException
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
-
-