public class WpedInstrXinstr extends java.lang.Object implements Instruction
WPED( INSTR , XINSTR )| Modifier and Type | Field and Description |
|---|---|
protected @NotNull Instruction |
instruction
The condition instruction.
|
protected @NotNull java.util.List<Instruction> |
instructions
The instructions to be executed in each iteration.
|
protected @Nullable Tree |
tree
The tree from where this instruction was declared.
|
| Constructor and Description |
|---|
WpedInstrXinstr(@NotNull Instruction instruction,
Instruction... instructions)
Construct a new instruction that executes the given
instructions while
executing the given instruction evaluates to true. |
WpedInstrXinstr(@NotNull Instruction instruction,
@NotNull java.util.List<Instruction> instructions)
Construct a new instruction that executes the given
instructions while
executing the given instruction evaluates to true. |
WpedInstrXinstr(@NotNull Tree tree,
@NotNull Instruction instruction,
Instruction... instructions)
Construct a new instruction that executes the given
instructions while
executing the given instruction evaluates to true. |
WpedInstrXinstr(@NotNull Tree tree,
@NotNull Instruction instruction,
@NotNull java.util.List<Instruction> instructions)
Construct a new instruction that executes the given
instructions while
executing the given instruction evaluates to true. |
| 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@NotNull protected final @NotNull Instruction instruction
@NotNull protected final @NotNull java.util.List<Instruction> instructions
@Nullable protected final @Nullable Tree tree
public WpedInstrXinstr(@NotNull
@NotNull Instruction instruction,
@Nullable
Instruction... instructions)
instructions while
executing the given instruction evaluates to true.
instruction - the condition instruction.instructions - the instructions to iterate.java.lang.NullPointerException - if the given instruction or instructions is null.public WpedInstrXinstr(@NotNull
@NotNull Instruction instruction,
@NotNull
@NotNull java.util.List<Instruction> instructions)
instructions while
executing the given instruction evaluates to true.
instruction - the condition instruction.instructions - the instructions to iterate.java.lang.NullPointerException - if the given instruction or instructions is null.public WpedInstrXinstr(@NotNull
@NotNull Tree tree,
@NotNull
@NotNull Instruction instruction,
@Nullable
Instruction... instructions)
instructions while
executing the given instruction evaluates to true.
tree - the tree from where this instruction was declared.instruction - the condition instruction.instructions - the instructions to iterate.java.lang.NullPointerException - if the given tree or instruction or
instructions is null.public WpedInstrXinstr(@NotNull
@NotNull Tree tree,
@NotNull
@NotNull Instruction instruction,
@NotNull
@NotNull java.util.List<Instruction> instructions)
instructions while
executing the given instruction evaluates to true.
tree - the tree from where this instruction was declared.instruction - the condition instruction.instructions - the instructions to iterate.java.lang.NullPointerException - if the given tree or instruction or
instructions 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.