public interface CqnInPredicate extends CqnPredicate
in
predicate tests wether an actual value
is equal to any value from a defined value set
.
It evaluates to false
if the value set is empty.Modifier and Type | Method and Description |
---|---|
default void |
accept(CqnVisitor visitor)
Traverses the expression tree represented by this token with a given
visitor . |
CqnValue |
value()
The actual
CqnValue that is tested against the values
given by valueSet() . |
default Collection<CqnValue> |
values()
Returns the collection of expected values in case
valueSet()
is a CqnListValue , otherwise a ClassCastException is thrown. |
CqnValue |
valueSet()
Defines the set of expected values the
actual value is
tested against. |
asPredicate, isPredicate
asArithmeticExpression, asExpression, asNegation, isArithmeticExpression, isExpression, isNegation, toJson
as, asFunction, asList, asLiteral, asNullValue, asParameter, asPlain, asRef, isFunction, isList, isLiteral, isNullValue, isParameter, isPlain, isRef, ofRef, type
CqnValue value()
CqnValue
that is tested against the values
given by valueSet()
.CqnValue
default Collection<CqnValue> values()
valueSet()
is a CqnListValue
, otherwise a ClassCastException
is thrown.ClassCastException
- if this value is not a CqnListValue
CqnValue valueSet()
actual value
is
tested against. Given as a CqnListValue
containing all expected values,
as a CqnReference
pointing to a collection-valued element or a
CqnParameter
pointing to a collection of values.default void accept(CqnVisitor visitor)
CqnToken
visitor
. The traversal order is depth-first. If this token has
child nodes they are traversed first by dispatching the visitor to the
children's accept
methods.
Afterwards this token is passed to the visitor's visit
method
specific for this token's type.accept
in interface CqnExpression
accept
in interface CqnToken
visitor
- the CqnVisitor
Copyright © 2023 SAP. All rights reserved.