Interface ArrayLoadInstruction
- All Superinterfaces:
ClassFileElementPREVIEW,CodeElementPREVIEW,InstructionPREVIEW
ArrayLoadInstruction 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 an array load instruction in the
code array of a Code
attribute. Corresponding opcodes will have a kind of Opcode.Kind.ARRAY_LOADPREVIEW. Delivered as a CodeElementPREVIEW when
traversing the elements of a CodeModelPREVIEW.- Since:
- 22
-
Method Summary
Methods declared in interface java.lang.classfile.InstructionPREVIEW
opcode, sizeInBytes
-
Method Details
-
typeKind
-
of
Returns an array load instruction.- Parameters:
op- the opcode for the specific type of array load instruction, which must be of kindOpcode.Kind.ARRAY_LOADPREVIEW- Returns:
- an array load instruction
- Throws:
IllegalArgumentException- if the opcode kind is notOpcode.Kind.ARRAY_LOADPREVIEW.
-
ArrayLoadInstructionwhen preview features are enabled.