01: /*
02: * @(#)ImmutableBinding.java 1.2 04/12/06
03: *
04: * Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
05: *
06: * See the file "LICENSE.txt" for information on usage and redistribution of
07: * this file, and for a DISCLAIMER OF ALL WARRANTIES.
08: */
09: package pnuts.lang;
10:
11: class ImmutableBinding extends Binding {
12:
13: ImmutableBinding(int h, String name, Object v, Binding n) {
14: super (h, name, v, n);
15: }
16:
17: /**
18: * Always throws IllegalStateException
19: */
20: public void set(Object value) {
21: throw new IllegalStateException();
22: }
23: }
|