public class PutAddrExecInstr0ExecInstr1 extends java.lang.Object implements Instruction
PUT( ADDR , EXEC( INSTR0 ) , EXEC( INSTR1 ) )| Modifier and Type | Field and Description |
|---|---|
protected @NotNull java.lang.String |
address
The address to put to.
|
protected @NotNull Instruction |
instruction0
The instruction of the key to be put.
|
protected @NotNull Instruction |
instruction1
The instruction of the value to be put.
|
protected @Nullable Tree |
tree
The tree this instruction was declared at.
|
| Constructor and Description |
|---|
PutAddrExecInstr0ExecInstr1(@NotNull java.lang.String address,
@NotNull Instruction instruction0,
@NotNull Instruction instruction1)
Construct a new instruction that puts the value of executing the given
instruction1 to the value of executing the given instruction0 at the given
address in the heap. |
PutAddrExecInstr0ExecInstr1(@NotNull Tree tree,
@NotNull java.lang.String address,
@NotNull Instruction instruction0,
@NotNull Instruction instruction1)
Construct a new instruction that puts the value of executing the given
instruction1 to the value of executing the given instruction0 at the given
address in the heap. |
| Modifier and Type | Method and Description |
|---|---|
void |
exec(@NotNull Environment environment,
@NotNull Memory memory)
Execute this instruction with the given
environment and memory. |
@Nullable Tree |
getTree()
Return the tree from where this instruction was declared.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, create@NotNull protected final @NotNull java.lang.String address
@NotNull protected final @NotNull Instruction instruction0
@NotNull protected final @NotNull Instruction instruction1
@Nullable protected final @Nullable Tree tree
public PutAddrExecInstr0ExecInstr1(@NotNull
@NotNull java.lang.String address,
@NotNull
@NotNull Instruction instruction0,
@NotNull
@NotNull Instruction instruction1)
instruction1 to the value of executing the given instruction0 at the given
address in the heap.address - the address to put to.instruction0 - the instruction of the key to be put.instruction1 - the instruction of the value to be put.java.lang.NullPointerException - if the given address or instruction0
or instruction1 is null.public PutAddrExecInstr0ExecInstr1(@NotNull
@NotNull Tree tree,
@NotNull
@NotNull java.lang.String address,
@NotNull
@NotNull Instruction instruction0,
@NotNull
@NotNull Instruction instruction1)
instruction1 to the value of executing the given instruction0 at the given
address in the heap.tree - the tree from where this instruction was declared.address - the address to put to.instruction0 - the instruction of the key to be put.instruction1 - the instruction of the value to be put.java.lang.NullPointerException - if the given tree or address or instruction0 or instruction1 is null.public void exec(@NotNull
@NotNull Environment environment,
@NotNull
@NotNull Memory memory)
Instructionenvironment and memory.exec in interface Instructionenvironment - the environment this instruction is executed in.memory - the memory holding the variables for this instruction to depend
on.@Nullable public @Nullable Tree getTree()
InstructiongetTree in interface Instruction