Class Bool

    • Constructor Detail

      • Bool

        public Bool()
    • Method Detail

      • operate

        public XObject operate​(XObject right)
                        throws javax.xml.transform.TransformerException
        Apply the operation to two operands, and return the result.
        Specified by:
        operate in class UnaryOperation
        Parameters:
        right - non-null reference to the evaluated right operand.
        Returns:
        non-null reference to the XObject that represents the result of the operation.
        Throws:
        javax.xml.transform.TransformerException
      • bool

        public boolean bool​(XPathContext xctxt)
                     throws javax.xml.transform.TransformerException
        Evaluate this operation directly to a boolean.
        Overrides:
        bool in class Expression
        Parameters:
        xctxt - The runtime execution context.
        Returns:
        The result of the operation as a boolean.
        Throws:
        javax.xml.transform.TransformerException