|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SwitchBlock
Support for building the equivalent of a Java switch statement.
| Method Summary | |
|---|---|
void |
addCase(int caseValue,
boolean jumpToEnd,
InstructionBuilderCallback callback)
Adds a handler for a particular case value. |
void |
addDefault(InstructionBuilderCallback callback)
Adds the default handler. |
| Method Detail |
|---|
void addCase(int caseValue,
boolean jumpToEnd,
InstructionBuilderCallback callback)
caseValue - value to matchjumpToEnd - true if a jump to the end should be provided, or false
if either the callback generated a return opcode, or
it is desired to "drop down" into the next case handler.
The last case handled drop down out of the SwitchBlock.callback - provides the logic for the specified casevoid addDefault(InstructionBuilderCallback callback)
IllegalArgumentException.
callback - provides the logic for the default handler case.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||