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
- 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Predicatecopy(ExpressionCopyContext copyContext) booleaninthashCode()booleanvoidnegate()voidsetNegated(boolean negated) Methods inherited from class com.blazebit.persistence.parser.expression.AbstractExpression
toStringMethods 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()
-