|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.databene.commons.expression.DynamicExpression<E>
org.databene.benerator.script.ConditionalExpression<E>
public class ConditionalExpression<E>
Expression implementation that evaluates a boolean (condition) expression
and, depending if the result was true or false, evaluates the first or second expression delegate.
The semantic is like the Java expression (condition ? alt1 : alt2).
Created at 06.10.2009 16:04:15
| Constructor Summary | |
|---|---|
ConditionalExpression(Expression<java.lang.Boolean> condition,
Expression<? extends E> alt1,
Expression<? extends E> alt2)
|
|
| Method Summary | |
|---|---|
E |
evaluate(Context context)
|
| Methods inherited from class org.databene.commons.expression.DynamicExpression |
|---|
isConstant |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConditionalExpression(Expression<java.lang.Boolean> condition,
Expression<? extends E> alt1,
Expression<? extends E> alt2)
| Method Detail |
|---|
public E evaluate(Context context)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||