Class Average

    • Constructor Detail

      • Average

        public Average()
    • Method Detail

      • getCardinality

        public int getCardinality​(Expression[] arguments)
        Determine the cardinality of the function.
        Overrides:
        getCardinality in class SystemFunction
        Parameters:
        arguments - the actual arguments supplied
        Returns:
        the most precise available cardinality that the function will return
      • getFold

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