- All Superinterfaces:
ClassFileElement,CodeElement,Instruction
- All Known Implementing Classes:
AbstractInstruction.UnboundArrayLoadInstruction
public sealed interface ArrayLoadInstruction
extends Instruction
permits AbstractInstruction.UnboundArrayLoadInstruction
Models an array load instruction in the
code array of a Code
attribute. Corresponding opcodes will have a kind of Opcode.Kind.ARRAY_LOAD. Delivered as a CodeElement when
traversing the elements of a CodeModel.- Since:
- 22
-
Method Summary
Modifier and TypeMethodDescriptionstatic ArrayLoadInstructionReturns an array load instruction.typeKind()Returns the component type of the array.Methods inherited from interface org.glavo.classfile.Instruction
opcode, sizeInBytes
-
Method Details
-
typeKind
TypeKind typeKind()Returns the component type of the array.- Returns:
- the component type of the array
-
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_LOAD- Returns:
- an array load instruction
-