public static class ExpressionFactory.CondOperator extends java.lang.Object implements Expression
Modifier and Type | Field and Description |
---|---|
private Expression |
condition |
private Expression |
firstOption |
private Expression |
secondOption |
Constructor and Description |
---|
CondOperator(Expression condition,
Expression firstOption,
Expression secondOption)
Constructs a new
CondOperator . |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
evaluate(Environment env)
Evaluate this expression.
|
private final Expression condition
private final Expression firstOption
private final Expression secondOption
public CondOperator(Expression condition, Expression firstOption, Expression secondOption)
CondOperator
.condition
- conditionfirstOption
- first optionsecondOption
- second optionpublic java.lang.Object evaluate(Environment env)
Expression
evaluate
in interface Expression
env
- The environmentList
, String or any
primitive type or wrapper classes of a primitive type.