Class UnparsedText

    • Constructor Detail

      • UnparsedText

        public UnparsedText()
    • Method Detail

      • preEvaluate

        public Expression preEvaluate​(ExpressionVisitor visitor)
        preEvaluate: this method suppresses compile-time evaluation by doing nothing
        Overrides:
        preEvaluate in class FunctionCall
        Parameters:
        visitor - an expression visitor
        Returns:
        the result of the early evaluation, or the original expression, or potentially a simplified expression
      • evaluateItem

        public Item evaluateItem​(XPathContext context)
                          throws XPathException
        This method handles evaluation of the function: it returns a StringValue in the case of unparsed-text(), or a BooleanValue in the case of unparsed-text-available()
        Specified by:
        evaluateItem in interface EvaluableItem
        Overrides:
        evaluateItem in class Expression
        Parameters:
        context - 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
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception