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