1 /**
2 * .
3 * Copyright � 1999 Erich P G.
4 *
5 */
6
7 package autohit.vm;
8
9 import java.io.Serializable;
10
11 /**
12 * A Virtual Machine instruction. Implements and ADD.
13 *
14 * @see autohit.vm.VMInstruction
15 *
16 * @author Erich P. Gatejen
17 * @version 1.0
18 * <i>Version History</i>
19 * <code>EPG - Initial - 21Jan99</code>
20 *
21 */
22 public class VMIAdd extends VMInstruction {
23
24 // --- FINAL FIELDS ------------------------------------------------------
25
26 // --- FIELDS ------------------------------------------------------------
27
28 /**
29 * Variable name.
30 * @serial
31 */
32 public String name;
33
34 /**
35 * Numeric value and/or variable reference.
36 * @serial
37 */
38 public String value;
39
40 // --- PUBLIC METHODS ----------------------------------------------------
41
42 /**
43 * Default constructor.
44 */
45 public VMIAdd() {
46 nToken = VMInstruction.ADD;
47 }
48
49 /**
50 * Dump this Instruction. Mostly for debugging.
51 *
52 * @return a String containing the dump.
53 */
54 public String toString() {
55 StringBuffer d = new StringBuffer();
56 d.append(" VMIAdd ---------------------------- \n");
57 d.append(" name = " + name + "\n");
58 d.append(" value = " + value + "\n");
59 return d.toString();
60 }
61
62 // --- PRIVATE METHODS ---------------------------------------------------
63
64 }
|