Class CompoundPredicate
java.lang.Object
com.blazebit.persistence.parser.expression.AbstractExpression
com.blazebit.persistence.parser.predicate.AbstractPredicate
com.blazebit.persistence.parser.predicate.CompoundPredicate
- All Implemented Interfaces:
Expression,Negatable,Predicate
- Since:
- 1.2.0
- Author:
- Moritz Becker
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.blazebit.persistence.parser.expression.Expression
Expression.ResultVisitor<T>, Expression.Visitor -
Field Summary
Fields inherited from class com.blazebit.persistence.parser.predicate.AbstractPredicate
negated -
Constructor Summary
ConstructorsConstructorDescriptionCompoundPredicate(CompoundPredicate.BooleanOperator operator, Predicate... children) CompoundPredicate(CompoundPredicate.BooleanOperator operator, List<Predicate> children) CompoundPredicate(CompoundPredicate.BooleanOperator operator, List<Predicate> children, boolean negated) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(Expression.ResultVisitor<T> visitor) voidaccept(Expression.Visitor visitor) The expression tree is traversed in pre-order.copy(ExpressionCopyContext copyContext) booleaninthashCode()Methods inherited from class com.blazebit.persistence.parser.predicate.AbstractPredicate
isNegated, negate, setNegatedMethods 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
toString
-
Constructor Details
-
CompoundPredicate
-
CompoundPredicate
-
CompoundPredicate
-
CompoundPredicate
public CompoundPredicate(CompoundPredicate.BooleanOperator operator, List<Predicate> children, boolean negated)
-
-
Method Details
-
getChildren
-
getOperator
-
copy
- Specified by:
copyin interfaceExpression- Specified by:
copyin interfacePredicate- Specified by:
copyin classAbstractPredicate- Returns:
-
accept
Description copied from interface:ExpressionThe expression tree is traversed in pre-order. -
accept
-
equals
- Overrides:
equalsin classAbstractPredicate
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractPredicate
-