Class ArrayFunctionSet.ArrayFromSequence

    • Constructor Detail

      • ArrayFromSequence

        public ArrayFromSequence()
    • Method Detail

      • ping

        public void ping()
        Callback function, invoked when a SimpleArrayItem created by this function needs to be converted to an ImmutableArrayItem
        Specified by:
        ping in interface Pingable
      • call

        public ArrayItem call​(XPathContext context,
                              Sequence[] arguments)
                       throws XPathException
        Description copied from class: FoldingFunction
        Evaluate the expression
        Specified by:
        call in interface Callable
        call in class FoldingFunction
        context - the dynamic evaluation context
        arguments - the values of the arguments, supplied as Sequences
        the result of the evaluation, in the form of a Sequence
        XPathException - if a dynamic error occurs during the evaluation of the expression
      • getFold

        public Fold getFold​(XPathContext context,
                            Sequence... additionalArguments)
        Create the Fold object which is used to perform a streamed evaluation
        Specified by:
        getFold in class FoldingFunction
        context - the dynamic evaluation context
        additionalArguments - the values of all arguments other than the first.
        the Fold object used to compute the function