/** * Get the effective boolean value. In the case of a union expression, this * is reduced to an OR expression, for efficiency */ public boolean effectiveBooleanValue(final XPathContext context) throws XPathException { if (operator == Token.UNION) { return operand0.effectiveBooleanValue(context) || operand1.effectiveBooleanValue(context); } else { return super.effectiveBooleanValue(context); } }
/** * Get the effective boolean value. In the case of a union expression, this * is reduced to an OR expression, for efficiency */ public boolean effectiveBooleanValue(final XPathContext context) throws XPathException { if (operator == Token.UNION) { return operand0.effectiveBooleanValue(context) || operand1.effectiveBooleanValue(context); } else { return super.effectiveBooleanValue(context); } }
/** * Get the effective boolean value. In the case of a union expression, this * is reduced to an OR expression, for efficiency */ public boolean effectiveBooleanValue(final XPathContext context) throws XPathException { if (operator == Token.UNION) { return operand0.effectiveBooleanValue(context) || operand1.effectiveBooleanValue(context); } else { return super.effectiveBooleanValue(context); } }
/** * Get the effective boolean value. In the case of a union expression, this * is reduced to an OR expression, for efficiency */ public boolean effectiveBooleanValue(final XPathContext context) throws XPathException { if (operator == Token.UNION) { // NOTE: this optimization was probably already done statically return getLhsExpression().effectiveBooleanValue(context) || getRhsExpression().effectiveBooleanValue(context); } else { return super.effectiveBooleanValue(context); } }
/** * Get the effective boolean value. In the case of a union expression, this * is reduced to an OR expression, for efficiency */ public boolean effectiveBooleanValue(final XPathContext context) throws XPathException { if (operator == Token.UNION) { // NOTE: this optimization was probably already done statically return getLhsExpression().effectiveBooleanValue(context) || getRhsExpression().effectiveBooleanValue(context); } else { return super.effectiveBooleanValue(context); } }