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. This creates and sets a variable. If the
13 * A reference to the variable should be pushed on the scope stack and placed
14 * in the VM variable map.
15 *
16 * @see autohit.vm.VMInstruction
17 *
18 * @author Erich P. Gatejen
19 * @version 1.0
20 * <i>Version History</i>
21 * <code>EPG - Initial - 14Jan99</code>
22 *
23 */
24 public class VMISet extends VMInstruction {
25
26 // --- FINAL FIELDS ------------------------------------------------------
27
28 // --- FIELDS ------------------------------------------------------------
29
30 /**
31 * Variable name.
32 * @serial
33 */
34 public String name;
35
36 /**
37 * Variable value.
38 * @serial
39 */
40 public String value;
41
42 // --- PUBLIC METHODS ----------------------------------------------------
43
44 /**
45 * Default constructor.
46 */
47 public VMISet() {
48 nToken = VMInstruction.SET;
49 }
50
51 /**
52 * Dump this Instruction. Mostly for debugging.
53 *
54 * @return a String containing the dump.
55 */
56 public String toString() {
57 StringBuffer d = new StringBuffer();
58 d.append(" VMISet ---------------------------- \n");
59 d.append(" name = " + name + "\n");
60 d.append(" value = " + value + "\n");
61 return d.toString();
62 }
63
64 // --- PRIVATE METHODS ---------------------------------------------------
65
66 }
|