Class CondExpression

java.lang.Object
  |
  +--RETRAN
        |
        +--Expression
              |
              +--CondExpression

public class CondExpression
extends Expression

A conditional expression - modified for RETRAN-2

Version:
2.0 October 2003
Author:
Paul Bailes, Ned Martin, modified 02-Nov-2003

Field Summary
private  Expression falseBranch
           
private  Expression testCond
           
private  Expression trueBranch
           
 
Constructor Summary
CondExpression(Expression c, Expression t, Expression f)
          Constructs a CondExpression.
 
Method Summary
 void JGen()
          Generates java source code for the conditional expression.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

testCond

private Expression testCond

trueBranch

private Expression trueBranch

falseBranch

private Expression falseBranch
Constructor Detail

CondExpression

public CondExpression(Expression c,
                      Expression t,
                      Expression f)
Constructs a CondExpression.
Parameters:
c - the test condition
t - the true branch
f - the false branch
Method Detail

JGen

public void JGen()
Generates java source code for the conditional expression.
Overrides:
JGen in class RETRAN