|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectTranslate.Exp
Translate.Exp.Cx
public abstract static class Exp.Cx
A wrapper for tree code that may be used both to compute a Boolean value and to effect transfer of control. Concrete subclasses of Cx are used to capture evaluation of different kinds of conditional.
| Nested Class Summary | |
|---|---|
static class |
Exp.Cx.IfThenElseExp
A wrapper for short-circuiting conditional expressions (e.g., &&, ||). |
static class |
Exp.Cx.Rel
A wrapper for relational operators that may be used for both their Boolean value and for control transfer. |
| Nested classes/interfaces inherited from class Translate.Exp |
|---|
Exp.Cx, Exp.Ex, Exp.Nx |
| Constructor Summary | |
|---|---|
Exp.Cx()
|
|
| Method Summary | |
|---|---|
abstract 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. |
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()
| Method Detail |
|---|
public Tree.Exp unEx()
Exp
unEx in class Exppublic Tree.Stm unNx()
Exp
unNx in class Exp
public abstract Tree.Stm unCx(Temp.Label t,
Temp.Label f)
Exp
unCx in class Expt - label to branch to on truef - label to branch to on false
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||