Class XdmFunctionItem

  • All Implemented Interfaces:
    java.lang.Iterable<XdmItem>

    public class XdmFunctionItem
    extends XdmItem
    The class XdmFunctionItem represents a function item
    • Constructor Detail

      • XdmFunctionItem

        protected XdmFunctionItem​(FunctionItem fi)
    • Method Detail

      • getName

        public QName getName()
        Get the name of the function
        Returns:
        the function name, as a QName, or null for an anonymous inline function item
      • getArity

        public int getArity()
        Get the arity of the function
        Returns:
        the arity of the function, that is, the number of arguments in the function's signature
      • isAtomicValue

        public boolean isAtomicValue()
        Determine whether the item is an atomic value
        Overrides:
        isAtomicValue in class XdmItem
        Returns:
        false, the item is not an atomic value, it is a function item
      • call

        public XdmValue call​(XdmValue[] arguments,
                             Processor processor)
                      throws SaxonApiException
        Call the function
        Parameters:
        arguments - the values to be supplied as arguments to the function
        processor - the s9api Processor
        Returns:
        the result of calling the function
        Throws:
        SaxonApiException