Interface Function

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void build​(java.lang.String uri, ExprList args)
      Called during query plan construction immediately after the construction of the extension instance.
      NodeValue exec​(Binding binding, ExprList args, java.lang.String uri, FunctionEnv env)
      Test a list of values - argument will not be null but may have the wrong number of arguments.
    • Method Detail

      • build

        void build​(java.lang.String uri,
                   ExprList args)
        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).
        Parameters:
        args - The parsed arguments
      • exec

        NodeValue exec​(Binding binding,
                       ExprList args,
                       java.lang.String uri,
                       FunctionEnv env)
        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.
        Parameters:
        binding - The current solution
        args - A list of unevaluated expressions
        uri - The name of this
        env - The execution context
        Returns:
        NodeValue - a value