lookupswitch instruction in the code array of a Code attribute. Delivered as a CodeElement
when traversing the elements of a CodeModel.
A lookup switch instruction is composite:
LookupSwitchInstruction( Label defaultTarget, List<SwitchCase> cases )
cases are not sorted ascending by their caseValue, a sorted version of the cases list
will be written instead.
Opcode.Kind#LOOKUP_SWITCH , CodeBuilder::lookupswitch
| Modifier and Type | Method and Description |
|---|---|
| public List | |
| public Label | |
| public static LookupSwitchInstruction | Returns: a lookup switch instructionthe default target of the switch defaultTarget, List<SwitchCase> the cases of the switch cases)Returns a lookup switch instruction. |
| cases | back to summary |
|---|---|
| public List Returns the cases of the switch.
| |
| defaultTarget | back to summary |
|---|---|
| public Label defaultTarget() Returns the target of the default case.
| |
| of | back to summary |
|---|---|
| public static LookupSwitchInstruction of(Label defaultTarget, List<SwitchCase> cases) Returns a lookup switch instruction.
| |