Interface LookupSwitchInstruction
- All Superinterfaces:
- ClassFileElement,- CodeElement,- Instruction
Models a 
 If elements in 
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.- See Java Virtual Machine Specification:
- 
6.5.lookupswitch lookupswitch
- Since:
- 24
- See Also:
- 
Method SummaryModifier 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.Instructionopcode, sizeInBytes
- 
Method Details- 
defaultTargetLabel defaultTarget()Returns the target of the default case.- Returns:
- the target of the default case
 
- 
cases
- 
ofReturns a lookup switch instruction.- Parameters:
- defaultTarget- the default target of the switch
- cases- the cases of the switch
- Returns:
- a lookup switch instruction
 
 
-