|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgnu.bytecode.SwitchState
public class SwitchState
Maintains the state for generating a switch statement.
| Constructor Summary | |
|---|---|
SwitchState(CodeAttr code)
|
|
| Method Summary | |
|---|---|
boolean |
addCase(int value,
CodeAttr code)
Emit a new case, for the given value, whose label is here. |
boolean |
addCase(int value,
Label label,
CodeAttr code)
Add a new case. |
void |
addDefault(CodeAttr code)
|
void |
addDefault(Label label,
CodeAttr code)
|
void |
finish(CodeAttr code)
Handle the end of the switch statement. |
int |
getMaxValue()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SwitchState(CodeAttr code)
| Method Detail |
|---|
public int getMaxValue()
public boolean addCase(int value,
CodeAttr code)
public void addDefault(CodeAttr code)
public void addDefault(Label label,
CodeAttr code)
public boolean addCase(int value,
Label label,
CodeAttr code)
value - the case value to match against at run-timelabel - the location to go to if the value matchescode - the CodeAttr of the Method we are generating code for
public void finish(CodeAttr code)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||