autohit.vm
Class VMIIf
java.lang.Object
|
+--autohit.vm.VMInstruction
|
+--autohit.vm.VMIIf
- public class VMIIf
- extends VMInstruction
A Virtual Machine instruction. This is an IF instruction. If the
expression matches the value, then the if will pass and the ip
should point to the follow instruction (which should be a SCOPE).
Otherwise the ip will be changed to point to the instruction
following the if block (one beyond the associated RSCOPE).
ip (Instruction Pointer) Flow
$e$ != value
-------------------------------------------
| |
| V
[IF] [SCOPE]..code block.. [RSCOPE] ... more code..
- See Also:
VMInstruction
,
VMIScope
, Serialized Form
Field Summary |
java.lang.String |
e
Expression. |
int |
target
False target. |
java.lang.String |
value
Value. |
Fields inherited from class autohit.vm.VMInstruction |
ADD,
CRC,
EXEC,
FOR,
GET,
HEADER,
IF,
iv,
IVToken,
JUMP,
NOP,
nToken,
NV,
RSCOPE,
SCOPE,
SEEK,
SET,
VERIFY,
WAIT,
WHILE |
Constructor Summary |
VMIIf()
Default constructor. |
Method Summary |
java.lang.String |
toString()
Dump this Instruction. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
e
public java.lang.String e
- Expression.
value
public java.lang.String value
- Value.
target
public int target
- False target. Jump here is expression resolves as false
VMIIf
public VMIIf()
- Default constructor.
toString
public java.lang.String toString()
- Dump this Instruction. Mostly for debugging.
- Returns:
- a String containing the dump.
- Overrides:
- toString in class VMInstruction