public class InstructionSlot<T extends Instruction>
extends java.lang.Object
Instruction.
Created by covers1624 on 21/9/21.
| Modifier | Constructor and Description |
|---|---|
|
InstructionSlot(Instruction parent)
Create a new
InstructionSlot. |
protected |
InstructionSlot(Instruction parent,
boolean link) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkInvariant() |
T |
get()
Return the value stored inside the slot.
|
T |
getValueOrNull()
Return the value stored inside the slot.
|
void |
set(Instruction value)
Set the value in this slot.
|
public InstructionSlot(Instruction parent)
InstructionSlot.parent - The parent owning instruction.protected InstructionSlot(Instruction parent, boolean link)
public void set(Instruction value)
value - The value.@Nullable public T getValueOrNull()
nullpublic T get()
protected void checkInvariant()