Class SubsequenceWhere

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

public class SubsequenceWhere extends SystemFunction
This class supports the proposed QT4 function fn:subsequence-where. The function takes three arguments: the first is a sequence of items, the second is a function used as a predicate to determine the first item to be included in the result, the third is a function used as a predicate to determine the last item to be included in the result,
  • Constructor Details

    • SubsequenceWhere

      public SubsequenceWhere()
  • Method Details

    • getStreamerName

      public String getStreamerName()
      Description copied from class: SystemFunction
      Get a name that identifies the class that can be used to evaluate this function in streaming mode, that is, supplying one item or event at a time as it is delivered by the parser. Special streaming support is generally available in Saxon-EE for all system functions that take a sequence as their argument.
      Overrides:
      getStreamerName in class SystemFunction
      Returns:
      a name that identifies a class that supports streamed evaluation of this system function, or null if no such class is available. The mapping of names to classes is defined in the Saxon-EE class StreamerMap. In non-streaming Saxon editions (HE and PE) the method always returns null.
    • call

      public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException
      Evaluate this function call at run-time
      Parameters:
      context - The XPath dynamic evaluation context
      arguments - The values of the arguments to the function call.
      Returns:
      the results of the function, as a sequence of arrays
      Throws:
      XPathException - if a dynamic error occurs during evaluation of the function. The Saxon run-time code will add information about the error location.