public class FpedAddrExecInstrXinstr extends java.lang.Object implements Instruction
FPED( ADDR , EXEC( INSTR ) , XINSTR )
FPED
a pre-specified array of
instructions foreach item resultant fro executing a pre-specified instruction and
allocating to a pre-specified address.Modifier and Type | Field and Description |
---|---|
protected @NotNull java.lang.String |
address
The address to allocate the item of each iteration to.
|
protected @NotNull Instruction |
instruction
The instruction to iterate the items resultant from executing it.
|
protected @NotNull java.util.List<Instruction> |
instructions
The instructions to be iterated.
|
protected @Nullable Tree |
tree
The tree from where this instruction was declared.
|
Constructor and Description |
---|
FpedAddrExecInstrXinstr(@NotNull java.lang.String address,
@NotNull Instruction instruction,
Instruction... instructions)
Construct a new instruction that executes the given
instructions foreach
item resultant from executing the given instruction . |
FpedAddrExecInstrXinstr(@NotNull java.lang.String address,
@NotNull Instruction instruction,
@NotNull java.util.List<Instruction> instructions)
Construct a new instruction that executes the given
instructions foreach
item resultant from executing the given instruction . |
FpedAddrExecInstrXinstr(@NotNull Tree tree,
@NotNull java.lang.String address,
@NotNull Instruction instruction,
Instruction... instructions)
Construct a new instruction that executes the given
instructions foreach
item resultant from executing the given instruction . |
FpedAddrExecInstrXinstr(@NotNull Tree tree,
@NotNull java.lang.String address,
@NotNull Instruction instruction,
@NotNull java.util.List<Instruction> instructions)
Construct a new instruction that executes the given
instructions foreach
item resultant from executing the given instruction . |
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, wait
create, create
@NotNull protected final @NotNull java.lang.String address
@NotNull protected final @NotNull Instruction instruction
@NotNull protected final @NotNull java.util.List<Instruction> instructions
@Nullable protected final @Nullable Tree tree
public FpedAddrExecInstrXinstr(@NotNull @NotNull java.lang.String address, @NotNull @NotNull Instruction instruction, @Nullable Instruction... instructions)
instructions
foreach
item resultant from executing the given instruction
.
address
- the address where to allocate the item to on each iteration.instruction
- the instruction to be executed to get the items.instructions
- the instructions to iterate.java.lang.NullPointerException
- if the given address
or instruction
or
instructions
is null.public FpedAddrExecInstrXinstr(@NotNull @NotNull java.lang.String address, @NotNull @NotNull Instruction instruction, @NotNull @NotNull java.util.List<Instruction> instructions)
instructions
foreach
item resultant from executing the given instruction
.
address
- the address where to allocate the item to on each iteration.instruction
- the instruction to be executed to get the items.instructions
- the instructions to iterate.java.lang.NullPointerException
- if the given address
or instruction
or
instructions
is null.public FpedAddrExecInstrXinstr(@NotNull @NotNull Tree tree, @NotNull @NotNull java.lang.String address, @NotNull @NotNull Instruction instruction, @Nullable Instruction... instructions)
instructions
foreach
item resultant from executing the given instruction
.
tree
- the tree from where this instruction was declared.address
- the address where to allocate the item to on each iteration.instruction
- the instruction to be executed to get the items.instructions
- the instructions to iterate.java.lang.NullPointerException
- if the given tree
or address
or instruction
or instructions
is null.public FpedAddrExecInstrXinstr(@NotNull @NotNull Tree tree, @NotNull @NotNull java.lang.String address, @NotNull @NotNull Instruction instruction, @NotNull @NotNull java.util.List<Instruction> instructions)
instructions
foreach
item resultant from executing the given instruction
.
tree
- the tree from where this instruction was declared.address
- the address where to allocate the item to on each iteration.instruction
- the instruction to be executed to get the items.instructions
- the instructions to iterate.java.lang.NullPointerException
- if the given tree
or address
or instruction
or instructions
is null.public void exec(@NotNull @NotNull Environment environment, @NotNull @NotNull Memory memory)
Instruction
environment
and memory
.exec
in interface Instruction
environment
- the environment this instruction is executed in.memory
- the memory holding the variables for this instruction to depend
on.@Nullable public @Nullable Tree getTree()
Instruction
getTree
in interface Instruction