public class PushEvalAddr extends java.lang.Object implements Instruction
PUSH( EVAL( ADDR ) )| Modifier and Type | Field and Description |
|---|---|
protected @NotNull java.lang.String |
address
The address to push the value of evaluating it.
|
protected @Nullable Tree |
tree
The tree of this instruction.
|
| Constructor and Description |
|---|
PushEvalAddr(@NotNull java.lang.String address)
Construct a new instruction that evaluates the given
address then pushes
the results to the stack. |
PushEvalAddr(@NotNull Tree tree,
@NotNull java.lang.String address)
Construct a new instruction that evaluates the given
address then pushes
the results to the stack. |
| 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
@Nullable protected final @Nullable Tree tree
public PushEvalAddr(@NotNull
@NotNull java.lang.String address)
address then pushes
the results to the stack.address - the address to be evaluated.java.lang.NullPointerException - if the given address is null.public PushEvalAddr(@NotNull
@NotNull Tree tree,
@NotNull
@NotNull java.lang.String address)
address then pushes
the results to the stack.tree - the tree of the constructed instruction.address - the address to be evaluated.java.lang.NullPointerException - if the given tree or address 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