Class BaseURI

    • Constructor Detail

      • BaseURI

        public BaseURI()
    • Method Detail

      • simplify

        public Expression simplify​(ExpressionVisitor visitor)
                            throws XPathException
        Simplify and validate. This is a pure function so it can be simplified in advance if the arguments are known
        Overrides:
        simplify in class FunctionCall
        Parameters:
        visitor - an expression visitor
        Returns:
        the simplified expression
        Throws:
        XPathException - if an error is discovered during expression rewriting
      • evaluateItem

        public Item evaluateItem​(XPathContext c)
                          throws XPathException
        Evaluate the function at run-time
        Overrides:
        evaluateItem in class Expression
        Parameters:
        c - The context in which the expression is to be evaluated
        Returns:
        the node or atomic value that results from evaluating the expression; or null to indicate that the result is an empty sequence
        Throws:
        XPathException - if any dynamic error occurs evaluating the expression