Class FunctionBase

    • Constructor Detail

      • FunctionBase

        public FunctionBase()
    • Method Detail

      • build

        public final void build​(java.lang.String uri,
                                ExprList args)
        Description copied from interface: Function
        Called during query plan construction immediately after the construction of the extension instance. Can throw ExprBuildException if something is wrong (like wrong number of arguments).
        Specified by:
        build in interface Function
        args - The parsed arguments
      • exec

        public NodeValue exec​(Binding binding,
                              ExprList args,
                              java.lang.String uri,
                              FunctionEnv env)
        Description copied from interface: Function
        Test a list of values - argument will not be null but may have the wrong number of arguments. FunctionBase provides a more convenient way to implement a function. Can throw ExprEvalsException if something goes wrong.
        Specified by:
        exec in interface Function
        binding - The current solution
        args - A list of unevaluated expressions
        uri - The name of this
        env - The execution context
        NodeValue - a value
      • exec

        public abstract NodeValue exec​(java.util.List<NodeValue> args)
        Function call to a list of evaluated argument values
      • checkBuild

        public abstract void checkBuild​(java.lang.String uri,
                                        ExprList args)