01: /*
02: * @(#)NamedValue.java 1.3 05/02/17
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.lang;
10:
11: /**
12: * Objects of this class are returned by Package.lookup() method.
13: */
14: public interface NamedValue extends Value {
15:
16: /**
17: * Gets the name of the value.
18: *
19: * @return the intern()'d String that identifies the value
20: */
21: public String getName();
22:
23: /**
24: * Sets the value
25: *
26: * @param obj the new value
27: */
28: public void set(Object obj);
29: }
|