Class AbstractPredicate
java.lang.Object
com.blazebit.persistence.parser.expression.AbstractExpression
com.blazebit.persistence.parser.predicate.AbstractPredicate
- All Implemented Interfaces:
Expression,Negatable,Predicate
- Direct Known Subclasses:
BetweenPredicate,BinaryExpressionPredicate,BooleanLiteral,CompoundPredicate,InPredicate,UnaryExpressionPredicate
public abstract class AbstractPredicate extends AbstractExpression implements Predicate
- Since:
- 1.2.0
- Author:
- Moritz Becker
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.blazebit.persistence.parser.expression.Expression
Expression.ResultVisitor<T>, Expression.Visitor -
Field Summary
Fields Modifier and Type Field Description protected booleannegated -
Constructor Summary
Constructors Constructor Description AbstractPredicate(boolean negated) -
Method Summary
Modifier and Type Method Description abstract Predicatecopy(ExpressionCopyContext copyContext)booleanequals(Object o)inthashCode()booleanisNegated()voidnegate()voidsetNegated(boolean negated)Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.blazebit.persistence.parser.expression.Expression
accept, accept, toString
-
Field Details
-
negated
protected boolean negated
-
-
Constructor Details
-
AbstractPredicate
public AbstractPredicate(boolean negated)
-
-
Method Details
-
isNegated
public boolean isNegated() -
setNegated
public void setNegated(boolean negated)- Specified by:
setNegatedin interfaceNegatable
-
negate
public void negate() -
copy
- Specified by:
copyin interfaceExpression- Specified by:
copyin interfacePredicate- Specified by:
copyin classAbstractExpression- Returns:
-
equals
-
hashCode
public int hashCode()
-