com.enonic.xp.query.expr.NotExpr Maven / Gradle / Ivy
package com.enonic.xp.query.expr;
import com.enonic.xp.annotation.PublicApi;
@PublicApi
public final class NotExpr
implements ConstraintExpr
{
private final Expression expr;
public NotExpr( final ConstraintExpr expr )
{
this.expr = expr;
}
public Expression getExpression()
{
return this.expr;
}
@Override
public String toString()
{
return "NOT (" + this.expr.toString() + ")";
}
}