/** * Determine whether the context item matches the filter predicate */ protected boolean matches() throws XPathException { return filter.effectiveBooleanValue(filterContext); }
/** * Determine whether the context item matches the filter predicate */ protected boolean matches() throws XPathException { return filter.effectiveBooleanValue(filterContext); }
/** * Determine whether the context item matches the filter predicate */ protected boolean matches() throws XPathException { return filter.effectiveBooleanValue(filterContext); }
/** * Determine whether the context item matches the filter predicate */ protected boolean matches() throws XPathException { return filter.effectiveBooleanValue(filterContext); }
/** * Determine whether the context item matches the filter predicate */ protected boolean matches() throws XPathException { return filter.effectiveBooleanValue(filterContext); }
/** * Determine whether the context item matches the filter predicate */ protected boolean matches() throws XPathException { return filter.effectiveBooleanValue(filterContext); }
/** * 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); } }
/** * Evaluate as a boolean. */ public boolean effectiveBooleanValue(XPathContext c) throws XPathException { return getLhsExpression().effectiveBooleanValue(c) && getRhsExpression().effectiveBooleanValue(c); }
@Override public void processTuple(XPathContext context) throws XPathException { if (predicate.effectiveBooleanValue(context)) { destination.processTuple(context); } }
/** * Evaluate the expression, returning its effective boolean value * * @param context the XPath dynamic context * @return the effective boolean value of the result, as defined by the fn:boolean() function * @throws XPathException if a dynamic error occurs, or if the result is a value for which * no effective boolean value is defined */ public boolean effectiveBooleanValue(XPathDynamicContext context) throws XPathException { return expression.effectiveBooleanValue(context.getXPathContextObject()); }
/** * Evaluate as a boolean. */ public boolean effectiveBooleanValue(XPathContext c) throws XPathException { return getLhsExpression().effectiveBooleanValue(c) || getRhsExpression().effectiveBooleanValue(c); }
/** * Evaluate the expression, returning its effective boolean value * @param context the XPath dynamic context * @return the effective boolean value of the result, as defined by the fn:boolean() function * @throws XPathException if a dynamic error occurs, or if the result is a value for which * no effective boolean value is defined */ public boolean effectiveBooleanValue(XPathDynamicContext context) throws XPathException { return expression.effectiveBooleanValue(context.getXPathContextObject()); }
/** * Evaluate as a boolean. */ public boolean effectiveBooleanValue(XPathContext c) throws XPathException { return getLhsExpression().effectiveBooleanValue(c) && getRhsExpression().effectiveBooleanValue(c); }
public TailCall processLeavingTail(XPathContext context) throws XPathException { while (test.effectiveBooleanValue(context)) { action.process(context); } return null; }
/** * 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); } }
@Override public boolean effectiveBooleanValue(XPathContext c) throws XPathException { try { return getArg(0).effectiveBooleanValue(c); } catch (XPathException e) { e.maybeSetLocation(getLocation()); e.maybeSetContext(c); throw e; } }
/** * Evaluate the effective boolean value */ public boolean effectiveBooleanValue(XPathContext c) throws XPathException { try { return !getArg(0).effectiveBooleanValue(c); } catch (XPathException e) { e.maybeSetLocation(getLocation()); e.maybeSetContext(c); throw e; } } };
public boolean effectiveBooleanValue(XPathContext context) throws XPathException { // EBV is independent of sequence order unless the sequence mixes atomic values and nodes ItemType type = argument[0].getItemType(context.getConfiguration().getTypeHierarchy()); if (type == AnyItemType.getInstance()) { return super.effectiveBooleanValue(context); } else { return argument[0].effectiveBooleanValue(context); } }
public boolean effectiveBooleanValue(XPathContext context) throws XPathException { // EBV is independent of sequence order unless the sequence mixes atomic values and nodes // Note, calls to get the EBV of reverse() should normally have been rewritten at compile time ItemType type = argument[0].getItemType(context.getConfiguration().getTypeHierarchy()); if (type == AnyItemType.getInstance()) { return super.effectiveBooleanValue(context); } else { return argument[0].effectiveBooleanValue(context); } }