public class PushNdefAddr extends java.lang.Object implements Instruction
PUSH( NDEF( ADDR ) )
false
if a pre-specified address is
defined and pushes the constant true
otherwise.Modifier and Type | Field and Description |
---|---|
protected @NotNull java.lang.String |
address
The address.
|
protected @Nullable Tree |
tree
The tree this instruction was declared at.
|
Constructor and Description |
---|
PushNdefAddr(@NotNull java.lang.String address)
Construct a new instruction that pushes
false if the given address
is defined or pushes true otherwise. |
PushNdefAddr(@NotNull Tree tree,
@NotNull java.lang.String address)
Construct a new instruction that pushes
false if the given address
is defined or pushes true otherwise. |
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, wait
create, create, getTree
@NotNull protected final @NotNull java.lang.String address
@Nullable protected final @Nullable Tree tree
public PushNdefAddr(@NotNull @NotNull java.lang.String address)
false
if the given address
is defined or pushes true
otherwise.address
- the address.java.lang.NullPointerException
- if the given address
is null.public PushNdefAddr(@NotNull @NotNull Tree tree, @NotNull @NotNull java.lang.String address)
false
if the given address
is defined or pushes true
otherwise.tree
- the tree from where this instruction was declared.address
- the address.java.lang.NullPointerException
- if the given tree
or address
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.