- All Superinterfaces:
ClassFileElementPREVIEW
,CodeElementPREVIEW
,InstructionPREVIEW
LookupSwitchInstruction
is a preview API of the Java platform.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Models a
lookupswitch
instruction in the code
array of a
Code
attribute. Delivered as a CodeElement
PREVIEW when traversing
the elements of a CodeModel
PREVIEW.- Since:
- 22
-
Method Summary
Modifier and TypeMethodDescriptioncases()
Returns the cases of the switch.Returns the target of the default case.Returns a lookup switch instruction.Methods declared in interface java.lang.classfile.InstructionPREVIEW
opcode, sizeInBytes
-
Method Details
-
defaultTarget
-
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
-
LookupSwitchInstruction
when preview features are enabled.