public class ConditionalTarget extends Target
| Modifier and Type | Field and Description |
|---|---|
Label |
ifFalse |
Label |
ifTrue |
boolean |
trueBranchComesFirst
True if the ifTrue label comes before the ifFalse label.
|
Ignore, pushObject| Constructor and Description |
|---|
ConditionalTarget(Label ifTrue,
Label ifFalse,
Language language) |
| Modifier and Type | Method and Description |
|---|---|
void |
compileFromStack(Compilation comp,
Type stackType) |
void |
emitGotoFirstBranch(CodeAttr code)
Goto whichever of IfTrue or ifFalse is specified by trueBranchComesFirst.
|
Type |
getType() |
public Label ifTrue
public Label ifFalse
public boolean trueBranchComesFirst
public void compileFromStack(Compilation comp, Type stackType)
compileFromStack in class Targetpublic final void emitGotoFirstBranch(CodeAttr code)