Class Or

    • Constructor Detail

      • Or

        public Or()
    • Method Detail

      • execute

        public XObject execute​(XPathContext xctxt)
                        throws javax.xml.transform.TransformerException
        OR two expressions and return the boolean result. Override superclass method for optimization purposes.
        Overrides:
        execute in class Operation
        Parameters:
        xctxt - The runtime execution context.
        Returns:
        XBoolean.S_TRUE or XBoolean.S_FALSE.
        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