Class FuncDefinition


  • public final class FuncDefinition
    extends Object
    Definition of a built-in function.
    Author:
    BaseX Team 2005-24, BSD License, Christian Gruen
    • Field Detail

      • seqType

        public final SeqType seqType
        Result type.
    • Method Detail

      • minMax

        public static int[] minMax​(String desc)
        Computes the minimum and maximum number of parameters by analyzing the description string.
        Parameters:
        desc - description
        Returns:
        min/max values
      • uri

        public byte[] uri()
        Returns the namespace URI of this function.
        Returns:
        function
      • has

        public boolean has​(Flag flag)
        Indicates if an expression has the specified compiler property.
        Parameters:
        flag - flag
        Returns:
        result of check
        See Also:
        Expr.has(Flag...)
      • local

        public byte[] local()
        Returns the local name of the function.
        Returns:
        name
      • variadic

        public boolean variadic()
        Indicates if this is a variadic function.
        Returns:
        result of check
      • get

        public StandardFunc get​(InputInfo info,
                                Expr... args)
        Creates a new function instance.
        Parameters:
        info - input info (can be null)
        args - function arguments
        Returns:
        function