Interface ArrayLoadInstruction

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 Details

    • typeKind

      TypeKind typeKind()
      Returns the component type of the array.
      Returns:
      the component type of the array
    • of

      static ArrayLoadInstruction of(Opcode op)
      Returns an array load instruction.
      Parameters:
      op - the opcode for the specific type of array load instruction, which must be of kind Opcode.Kind.ARRAY_LOAD
      Returns:
      an array load instruction