Interface StoreInstruction

All Superinterfaces:
ClassfileElement, CodeElement, Instruction
All Known Implementing Classes:
AbstractInstruction.BoundStoreInstruction, AbstractInstruction.UnboundStoreInstruction

Models a local variable store instruction in the code array of a Code attribute. Corresponding opcodes will have a kind of Opcode.Kind.STORE. Delivered as a CodeElement when traversing the elements of a CodeModel.
  • Method Details

    • slot

      int slot()
    • typeKind

      TypeKind typeKind()
    • of

      static StoreInstruction of(TypeKind kind, int slot)
      Returns a local variable store instruction.
      Parameters:
      kind - the type of the value to be stored
      slot - the local varaible slot to store to
      Returns:
      a local variable store instruction
    • of

      static StoreInstruction of(Opcode op, int slot)
      Returns a local variable store instruction.
      Parameters:
      op - the opcode for the specific type of store instruction, which must be of kind Opcode.Kind.STORE
      slot - the local varaible slot to store to
      Returns:
      a local variable store instruction