01: package sisc.data;
02:
03: import java.io.*;
04:
05: import sisc.io.ValueWriter;
06:
07: public class EOFObject extends Value implements Singleton {
08: public static EOFObject EOF = new EOFObject();
09:
10: public EOFObject() {
11: }
12:
13: public void display(ValueWriter w) throws IOException {
14: w.append("#!eof");
15: }
16:
17: public int hashCode() {
18: return 0x12345678;
19: }
20:
21: public Value singletonValue() {
22: return EOF;
23: }
24: }
25: /*
26: * The contents of this file are subject to the Mozilla Public
27: * License Version 1.1 (the "License"); you may not use this file
28: * except in compliance with the License. You may obtain a copy of
29: * the License at http://www.mozilla.org/MPL/
30: *
31: * Software distributed under the License is distributed on an "AS
32: * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
33: * implied. See the License for the specific language governing
34: * rights and limitations under the License.
35: *
36: * The Original Code is the Second Interpreter of Scheme Code (SISC).
37: *
38: * The Initial Developer of the Original Code is Scott G. Miller.
39: * Portions created by Scott G. Miller are Copyright (C) 2000-2007
40: * Scott G. Miller. All Rights Reserved.
41: *
42: * Contributor(s):
43: * Matthias Radestock
44: *
45: * Alternatively, the contents of this file may be used under the
46: * terms of the GNU General Public License Version 2 or later (the
47: * "GPL"), in which case the provisions of the GPL are applicable
48: * instead of those above. If you wish to allow use of your
49: * version of this file only under the terms of the GPL and not to
50: * allow others to use your version of this file under the MPL,
51: * indicate your decision by deleting the provisions above and
52: * replace them with the notice and other provisions required by
53: * the GPL. If you do not delete the provisions above, a recipient
54: * may use your version of this file under either the MPL or the
55: * GPL.
56: */
|