Class PartialApplyFn

All Implemented Interfaces:
Callable, IFunctionWithRetainedParameterNames, FunctionItem, GroundedValue, Item, Sequence

public class PartialApplyFn extends SystemFunction
This class implements the function fn:partial-apply(), which is a standard function in XQuery 3.1. The fn:apply function is also used internally to implement dynamic function calls.
  • Constructor Details

    • PartialApplyFn

      public PartialApplyFn()
  • Method Details

    • call

      public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException
      Evaluate the expression
      Parameters:
      context - the dynamic evaluation context
      arguments - the values of the arguments. The first argument is the function item to be called; the second argument is a map containing the arguments to be bound in that function, before conversion.
      Returns:
      the result of the evaluation, in the form of a SequenceIterator
      Throws:
      XPathException - if a dynamic error occurs during the evaluation of the expression