01: /*
02: * @(#)Slot.java 1.2 04/12/06
03: *
04: * Copyright (c) 1997-2003 Sun Microsystems, Inc. All Rights Reserved.
05: *
06: * See the file "LICENSE.txt" for information on usage and redistribution
07: * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
08: */
09: package pnuts.compiler;
10:
11: class Slot {
12:
13: Object key;
14: Object value;
15: Slot chain;
16:
17: Slot() {
18: }
19:
20: Slot(Object key, Object value) {
21: this .key = key;
22: this .value = value;
23: }
24:
25: public void set(Object value) {
26: this .value = value;
27: }
28:
29: public Object get() {
30: return value;
31: }
32: }
|