public class AllocAddrExecInstr extends java.lang.Object implements Instruction
ALLOC( ADDR , EXEC( INSTR ) )| Modifier and Type | Field and Description | 
|---|---|
| protected @NotNull java.lang.String | addressThe address to allocate to. | 
| protected @NotNull Instruction | instructionThe instruction to be executed. | 
| protected @Nullable Tree | treeThe tree this instruction was declared at. | 
| Constructor and Description | 
|---|
| AllocAddrExecInstr(@NotNull java.lang.String address,
                  @NotNull Instruction instruction)Construct a new instruction that allocates the results from executing the given
  instructionto the givenaddressat the heap. | 
| AllocAddrExecInstr(@NotNull Tree tree,
                  @NotNull java.lang.String address,
                  @NotNull Instruction instruction)Construct a new instruction that allocates the results from executing the given
  instructionto the givenaddressat the heap. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | exec(@NotNull Environment environment,
    @NotNull Memory memory)Execute this instruction with the given  environmentandmemory. | 
| @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 instruction
@Nullable protected final @Nullable Tree tree
public AllocAddrExecInstr(@NotNull
                          @NotNull java.lang.String address,
                          @NotNull
                          @NotNull Instruction instruction)
instruction to the given address at the heap.address - the address to where to allocate.instruction - the instruction to execute.java.lang.NullPointerException - if the given address or instruction is
                              null.public AllocAddrExecInstr(@NotNull
                          @NotNull Tree tree,
                          @NotNull
                          @NotNull java.lang.String address,
                          @NotNull
                          @NotNull Instruction instruction)
instruction to the given address at the heap.tree - the tree from where this instruction was declared.address - the address to where to allocate.instruction - the instruction to execute.java.lang.NullPointerException - if the given tree or address or instruction 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