|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTranslate.Exp
Translate.Exp.Cx
Translate.Exp.Cx.IfThenElseExp
public static class Exp.Cx.IfThenElseExp
A wrapper for short-circuiting conditional expressions (e.g., &&, ||).
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.IfThenElseExp(Exp c,
Exp t,
Exp f)
Wrap the expressions and return the wrapper. |
Method Summary | |
---|---|
Tree.Stm |
unCx(Temp.Label tt,
Temp.Label ff)
If cond is true then evaluate thenExp, otherwise if cond is false evaluate elseExp. |
Tree.Exp |
unEx()
Unwrap this expression, to obtain tree code that computes a value. |
Tree.Stm |
unNx()
Unwrap this expression, to obtain tree code that should be executed only for its side-effects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Exp.Cx.IfThenElseExp(Exp c, Exp t, Exp f)
c
- condition expressiont
- then expressionf
- else expressionMethod Detail |
---|
public Tree.Exp unEx()
Exp
unEx
in class Exp.Cx
public Tree.Stm unNx()
Exp
unNx
in class Exp.Cx
public Tree.Stm unCx(Temp.Label tt, Temp.Label ff)
unCx
in class Exp.Cx
tt
- label to branch to on trueff
- label to branch to on false
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |