com.zfabrik.util.expression
Class X.In
java.lang.Object
com.zfabrik.util.expression.X
com.zfabrik.util.expression.X.BinaryOp
com.zfabrik.util.expression.X.In
- Enclosing class:
- X
public static class X.In
- extends X.BinaryOp
"containment" operator. Evaluates to true, if the left operand is contained
in the right operand - whatever that may mean in the evaluation context.
The default evaluation over a map context (see eval(Map))) translates to collection containment
if the right operand evaluates to a collection or to containment as showing up as a string
in a comma-separated list of strings that is the right operand's evaluation result.
| Nested classes/interfaces inherited from class com.zfabrik.util.expression.X |
X.And, X.BinaryOp, X.Eq, X.Ge, X.Gt, X.In, X.Le, X.Lt, X.Neq, X.Not, X.Or, X.UnaryOp, X.Val, X.Var, X.Xor |
|
Constructor Summary |
X.In(X x,
X y)
|
|
Method Summary |
java.lang.Object |
eval(java.util.Map<java.lang.String,java.lang.Object> context)
Evaluation of the expression over a map style context that
defines variable values. |
java.lang.String |
toString()
|
| Methods inherited from class com.zfabrik.util.expression.X |
and, and, eq, eq, eval, eval, ge, gt, in, le, lt, neq, neq, not, not, or, or, val, var, xor, xor |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
X.In
public X.In(X x,
X y)
eval
public java.lang.Object eval(java.util.Map<java.lang.String,java.lang.Object> context)
- Description copied from class:
X
- Evaluation of the expression over a map style context that
defines variable values.
- Specified by:
eval in class X
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object