Search in sources :

Example 1 with IsEmptyPredicate

use of com.blazebit.persistence.parser.predicate.IsEmptyPredicate in project blaze-persistence by Blazebit.

the class EqualityCheckingVisitor method visit.

@Override
public Boolean visit(IsEmptyPredicate predicate) {
    if (referenceExpression.getClass() != predicate.getClass()) {
        return Boolean.TRUE;
    }
    IsEmptyPredicate referencePredicate = (IsEmptyPredicate) referenceExpression;
    if (referencePredicate.isNegated() != predicate.isNegated()) {
        return Boolean.TRUE;
    }
    referenceExpression = referencePredicate.getExpression();
    return predicate.getExpression().accept(this);
}
Also used : IsEmptyPredicate(com.blazebit.persistence.parser.predicate.IsEmptyPredicate)

Aggregations

IsEmptyPredicate (com.blazebit.persistence.parser.predicate.IsEmptyPredicate)1