public class Idle extends java.lang.Object implements Instruction
IDLE| Modifier and Type | Field and Description |
|---|---|
protected @Nullable Tree |
tree
The tree this instruction was declared at.
|
| Constructor and Description |
|---|
Idle()
Construct a new instruction that does nothing.
|
Idle(@NotNull Tree tree)
Construct a new instruction that does nothing.
|
| Modifier and Type | Method and Description |
|---|---|
void |
exec(@NotNull Environment environment,
@NotNull Memory memory)
Execute this instruction with the given
environment and memory. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, create, getTree@Nullable protected final @Nullable Tree tree
public Idle()
public Idle(@NotNull
@NotNull Tree tree)
tree - the tree from where this instruction was declared.java.lang.NullPointerException - if the given tree 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.