- All Superinterfaces:
ClassfileElement,CodeElement,Instruction
- All Known Implementing Classes:
AbstractInstruction.BoundStoreInstruction,AbstractInstruction.UnboundStoreInstruction
public sealed interface StoreInstruction
extends Instruction
permits 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 Summary
Modifier and TypeMethodDescriptionstatic StoreInstructionReturns a local variable store instruction.static StoreInstructionReturns a local variable store instruction.intslot()typeKind()Methods inherited from interface org.glavo.classfile.Instruction
opcode, sizeInBytes
-
Method Details
-
slot
int slot() -
typeKind
TypeKind typeKind() -
of
Returns a local variable store instruction.- Parameters:
kind- the type of the value to be storedslot- the local varaible slot to store to- Returns:
- a local variable store instruction
-
of
Returns a local variable store instruction.- Parameters:
op- the opcode for the specific type of store instruction, which must be of kindOpcode.Kind.STOREslot- the local varaible slot to store to- Returns:
- a local variable store instruction
-