protected Not not( Constraint constraint ) { return new Not(constraint); }
@Override public int hashCode() { return getConstraint().hashCode(); }
Constraint oldInner = not.getConstraint(); Constraint newInner = rewrite(context, oldInner); if (oldInner != newInner) { return new Not(newInner);
Constraint oldInner = not.getConstraint(); Constraint newInner = rewrite(context, oldInner); if (oldInner != newInner) { return new Not(newInner);
Constraint wrapped = replaceReferencesToRemovedSource(context, not.getConstraint(), rewrittenSelectors); if (wrapped == not.getConstraint()) return not; return new Not(wrapped);
@Override public int hashCode() { return getConstraint().hashCode(); }
protected Not not( Constraint constraint ) { return new Not(constraint); }
Constraint wrapped = replaceSubqueriesWithBindVariables(context, not.getConstraint(), subqueriesByVariableName); if (wrapped == not.getConstraint()) return not; return new Not(wrapped);
protected boolean indexAppliesTo( Not not ) { return indexAppliesTo(not.getConstraint()); }
@Override public Not not( javax.jcr.query.qom.Constraint constraint ) { Constraint jcrConstraint = CheckArg.getInstanceOf(constraint, Constraint.class, "constraint"); return new Not(jcrConstraint); }
Constraint wrapped = replaceReferencesToRemovedSource(context, not.getConstraint(), rewrittenSelectors); if (wrapped == not.getConstraint()) return not; return new Not(wrapped);
protected boolean indexAppliesTo( Not not ) { return indexAppliesTo(not.getConstraint()); }
@Override public Not not( javax.jcr.query.qom.Constraint constraint ) { Constraint jcrConstraint = CheckArg.getInstanceOf(constraint, Constraint.class, "constraint"); return new Not(jcrConstraint); }
Constraint wrapped = replaceSubqueriesWithBindVariables(context, not.getConstraint(), subqueriesByVariableName); if (wrapped == not.getConstraint()) return not; return new Not(wrapped);
@Override public void visit( Not not ) { strategy.visit(not); enqueue(not.getConstraint()); visitNext(); }
protected ConstraintBuilder buildLogicalConstraint() { if (negateConstraint && constraint != null) { constraint = new Not(constraint); negateConstraint = false; } if (left != null && constraint != null) { if (and) { // If the left constraint is an OR, we need to rearrange things since AND is higher precedence ... if (left instanceof Or && implicitParentheses) { Or previous = (Or)left; constraint = new Or(previous.left(), new And(previous.right(), constraint)); } else { constraint = new And(left, constraint); } } else { constraint = new Or(left, constraint); } left = null; } return this; }
Constraint wrapped = replaceAliasesWithProperties(context, not.getConstraint(), propertyByAlias); if (wrapped == not.getConstraint()) return not; return new Not(wrapped);
@Override public void visit( Not not ) { strategy.visit(not); enqueue(not.getConstraint()); visitNext(); }
protected ConstraintBuilder buildLogicalConstraint() { if (negateConstraint && constraint != null) { constraint = new Not(constraint); negateConstraint = false; } if (left != null && constraint != null) { if (and) { // If the left constraint is an OR, we need to rearrange things since AND is higher precedence ... if (left instanceof Or && implicitParentheses) { Or previous = (Or)left; constraint = new Or(previous.left(), new And(previous.right(), constraint)); } else { constraint = new And(left, constraint); } } else { constraint = new Or(left, constraint); } left = null; } return this; }
Constraint wrapped = replaceAliasesWithProperties(context, not.getConstraint(), propertyByAlias); if (wrapped == not.getConstraint()) return not; return new Not(wrapped);