Interface LookupSwitchInstruction
- All Superinterfaces:
ClassFileElement,CodeElement,Instruction
Models a
lookupswitch instruction in the code array of a
Code attribute. Delivered as a CodeElement when traversing
the elements of a CodeModel.- Since:
- 24
-
Method Summary
Modifier and TypeMethodDescriptioncases()Returns the cases of the switch.Returns the target of the default case.static LookupSwitchInstructionof(Label defaultTarget, List<SwitchCase> cases) Returns a lookup switch instruction.Methods declared in interface java.lang.classfile.Instruction
opcode, sizeInBytes
-
Method Details
-
defaultTarget
Label defaultTarget()Returns the target of the default case.- Returns:
- the target of the default case
-
cases
-
of
Returns a lookup switch instruction.- Parameters:
defaultTarget- the default target of the switchcases- the cases of the switch- Returns:
- a lookup switch instruction
-