public interface SwitchBlock
| Modifier and Type | Method and Description |
|---|---|
void |
addCase(int caseValue,
boolean jumpToEnd,
InstructionBuilderCallback callback)
Adds a handler for a particular case value.
|
void |
addDefault(InstructionBuilderCallback callback)
Adds the default handler.
|
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.5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.