|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectConditional
public class Conditional
A Conditional is an if-then-else expression.
| Constructor Summary | |
|---|---|
Conditional(Expression test,
Expression ifTrue,
Expression ifFalse)
Creates a Conditional with the specified components. |
|
| Method Summary | |
|---|---|
java.lang.Object |
eval(Environment env)
Evaluate this expression. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Conditional(Expression test,
Expression ifTrue,
Expression ifFalse)
test - an expression which evaluates to true or falseifTrue - the expression to evaluate if the test returns trueifFalse - the expression to evaluate if the test returns false| Method Detail |
|---|
public java.lang.Object eval(Environment env)
Expression
eval in interface Expressionenv - the environment in which the expression should be evaluated
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||