Class FN_Matches

  • All Implemented Interfaces:
    Function

    public class FN_Matches
    extends java.lang.Object
    implements Function
    Function for XPath fn:matches
    • Constructor Summary

      Constructors 
      Constructor Description
      FN_Matches()  
    • Method Summary

      All Methods Instance Methods Concrete 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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FN_Matches

        public FN_Matches()
    • Method Detail

      • build

        public 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
        Parameters:
        binding - The current solution
        args - A list of unevaluated expressions
        uri - The name of this
        env - The execution context
        Returns:
        NodeValue - a value