Class InstructionSlot<T extends Instruction>
java.lang.Object
net.covers1624.coffeegrinder.bytecode.InstructionSlot<T>
- Direct Known Subclasses:
InstructionCollection,InstructionCollection.CollectionSlot
Represents a Slot to hold an
Instruction.
Created by covers1624 on 21/9/21.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionInstructionSlot(Instruction parent) Create a newInstructionSlot.protectedInstructionSlot(Instruction parent, boolean link) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidget()Return the value stored inside the slot.Return the value stored inside the slot.voidset(Instruction value) Set the value in this slot.
-
Constructor Details
-
InstructionSlot
Create a newInstructionSlot.- Parameters:
parent- The parent owning instruction.
-
InstructionSlot
-
-
Method Details
-
set
Set the value in this slot.- Parameters:
value- The value.
-
getValueOrNull
Return the value stored inside the slot.- Returns:
- The value, otherwise
null
-
get
Return the value stored inside the slot.- Returns:
- The value.
-
checkInvariant
protected void checkInvariant()
-