orc.ast.extended
Class IfThenElse
java.lang.Object
   orc.ast.extended.Expression
orc.ast.extended.Expression
       orc.ast.extended.IfThenElse
orc.ast.extended.IfThenElse
- All Implemented Interfaces: 
- Locatable, Located
- public class IfThenElse 
- extends Expression
"if condition then consequent else alternative" desugars to
 "(if(c) >> consequent | if(~c) >> alternative) <c< condition"
- Author:
- quark
 
 
 
 
| Method Summary | 
|  Expression | simplify()Simplify an expression which occurs in a call (non-nested) position.
 | 
|  java.lang.String | toString()
 | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
condition
public Expression condition
consequent
public Expression consequent
alternative
public Expression alternative
IfThenElse
public IfThenElse(Expression condition,
                  Expression consequent,
                  Expression alternative)
IfThenElse
public IfThenElse(Expression condition,
                  Expression consequent)
simplify
public Expression simplify()
                    throws CompilationException
- Description copied from class: Expression
- Simplify an expression which occurs in a call (non-nested) position.
 
- 
- Specified by:
- simplifyin class- Expression
 
- 
- Returns:
- The simplified expression
- Throws:
- CompilationException
 
toString
public java.lang.String toString()
- 
- Overrides:
- toStringin class- java.lang.Object
 
-