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 Expression condition
private Expression firstOption
private Expression secondOption
public CondOperator(Expression condition, Expression firstOption, Expression secondOption)
CondOperator.condition - conditionfirstOption - first optionsecondOption - second optionpublic java.lang.Object evaluate(Environment env)
Expressionevaluate in interface Expressionenv - The environmentList, String or any
primitive type or wrapper classes of a primitive type.