Translate
Class Exp.Cx.Rel

java.lang.Object
  extended by Translate.Exp
      extended by Translate.Exp.Cx
          extended by Translate.Exp.Cx.Rel
Enclosing class:
Exp.Cx

public static class Exp.Cx.Rel
extends Exp.Cx

A wrapper for relational operators that may be used for both their Boolean value and for control transfer.


Nested Class Summary
 
Nested classes/interfaces inherited from class Translate.Exp.Cx
Exp.Cx.IfThenElseExp, Exp.Cx.Rel
 
Nested classes/interfaces inherited from class Translate.Exp
Exp.Cx, Exp.Ex, Exp.Nx
 
Constructor Summary
Exp.Cx.Rel(Tree.Stm.CJUMP.Operator o, Tree.Exp l, Tree.Exp r)
           
 
Method Summary
 Tree.Stm unCx(Temp.Label t, Temp.Label f)
          Unwrap this expression, to obtain code that causes transfer of control based on the Boolean value of the expression.
 
Methods inherited from class Translate.Exp.Cx
unEx, unNx
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Exp.Cx.Rel

public Exp.Cx.Rel(Tree.Stm.CJUMP.Operator o,
                  Tree.Exp l,
                  Tree.Exp r)
Method Detail

unCx

public Tree.Stm unCx(Temp.Label t,
                     Temp.Label f)
Description copied from class: Exp
Unwrap this expression, to obtain code that causes transfer of control based on the Boolean value of the expression.

Specified by:
unCx in class Exp.Cx
Parameters:
t - label to branch to on true
f - label to branch to on false
Returns:
the tree code to evaluate the expression and effect the transfer of control.