Package com.sap.cds.ql.cqn
Interface CqnMatchPredicate
- All Superinterfaces:
CqnExpression
,CqnPredicate
,CqnToken
,CqnValue
,JSONizable
Predicate that tests whether any|all elements of an entity set match a given
condition
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
accept
(CqnVisitor visitor) Dispatches the handling of thisCqnMatchPredicate
to a given visitor.The condition to test forWhether all or any elements need to fulfill the conditionref()
The referenced entity setMethods inherited from interface com.sap.cds.ql.cqn.CqnExpression
asArithmeticExpression, asExpression, asNegation, isArithmeticExpression, isExpression, isNegation, toJson
Methods inherited from interface com.sap.cds.ql.cqn.CqnPredicate
asPredicate, isPredicate
Methods inherited from interface com.sap.cds.ql.cqn.CqnValue
as, asFunction, asList, asLiteral, asNullValue, asParameter, asPlain, asRef, isFunction, isList, isLiteral, isNullValue, isParameter, isPlain, isRef, ofRef, type
-
Method Details
-
ref
CqnStructuredTypeRef ref()The referenced entity set- Returns:
- the referenced entity set
-
predicate
Optional<CqnPredicate> predicate()The condition to test for- Returns:
- the condition to test for
-
quantifier
CqnMatchPredicate.Quantifier quantifier()Whether all or any elements need to fulfill the condition- Returns:
- whether all or any elements need to fulfill the condition
-
accept
Dispatches the handling of thisCqnMatchPredicate
to a given visitor. Neither theref
nor filterpredicate
is traversed.- Specified by:
accept
in interfaceCqnExpression
- Specified by:
accept
in interfaceCqnToken
- Parameters:
visitor
- theCqnVisitor
-