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 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 function
        arguments - the function arguments
        dynamicContext - the dynamic evaluation context
        focus - the current focus
        Returns:
        a sequence containing the result of the execution
        Throws:
        MetapathException - if an error occurred while executing the function