1 |
/* java.lang.Void |
/* Void.class - defines void.class |
2 |
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc. |
Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
7 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
8 |
the Free Software Foundation; either version 2, or (at your option) |
the Free Software Foundation; either version 2, or (at your option) |
9 |
any later version. |
any later version. |
10 |
|
|
11 |
GNU Classpath is distributed in the hope that it will be useful, but |
GNU Classpath is distributed in the hope that it will be useful, but |
12 |
WITHOUT ANY WARRANTY; without even the implied warranty of |
WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
38 |
|
|
39 |
package java.lang; |
package java.lang; |
40 |
|
|
|
/* Written using "Java Class Libraries", 2nd edition, plus online |
|
|
* API docs for JDK 1.2 beta from http://www.javasoft.com. |
|
|
* Status: Complete. |
|
|
*/ |
|
|
|
|
41 |
/** |
/** |
42 |
* Void is a placeholder class so that the variable Void.TYPE can be |
* Void is a placeholder class so that the variable <code>Void.TYPE</code> |
43 |
* supported for reflection return types. |
* (also available as <code>void.class</code>) can be supported for |
44 |
|
* reflection return types. |
45 |
|
* |
46 |
|
* <p>This class could be Serializable, but that is up to Sun. |
47 |
* |
* |
48 |
* @author Paul Fisher |
* @author Paul Fisher |
49 |
* @author John Keiser |
* @author John Keiser |
50 |
* @author Per Bothner <bothner@cygnus.com> |
* @author Eric Blake <ebb9@email.byu.edu> |
51 |
* @since JDK1.1 |
* @since 1.1 |
52 |
|
* @status updated to 1.4 |
53 |
*/ |
*/ |
54 |
public final class Void |
public final class Void |
55 |
{ |
{ |
56 |
/** |
/** |
57 |
* The return type <code>void</code> is represented by this |
* The return type <code>void</code> is represented by this |
58 |
* <code>Class</code> object. |
* <code>Class</code> object. |
59 |
*/ |
*/ |
60 |
public static final Class TYPE = VMClassLoader.getPrimitiveClass('V'); |
public static final Class TYPE = VMClassLoader.getPrimitiveClass('V'); |
61 |
|
|
62 |
/** |
/** |
63 |
* Don't allow Void objects to be made. |
* Void is non-instantiable. |
64 |
*/ |
*/ |
65 |
private Void() { } |
private Void() { } |
66 |
} |
} |