Home >> All >> ClassLib >> ibm13_linux >> java >> [ lang Javadoc ] |
Source code: ClassLib/ibm13_linux/java/lang/Class.java
1 // Class.java, created Fri Jan 11 17:08:41 2002 by joewhaley 2 // Copyright (C) 2001-3 John Whaley <jwhaley@alum.mit.edu> 3 // Licensed under the terms of the GNU LGPL; see COPYING for details. 4 package ClassLib.ibm13_linux.java.lang; 5 6 import Bootstrap.PrimordialClassLoader; 7 8 /** 9 * Class 10 * 11 * @author John Whaley <jwhaley@alum.mit.edu> 12 * @version $Id: Class.java,v 1.8 2003/05/12 10:04:54 joewhaley Exp $ 13 */ 14 public class Class { 15 16 private static native Class forName0(java.lang.String name, boolean initialize, 17 java.lang.ClassLoader loader) 18 throws ClassNotFoundException; 19 private native java.lang.Object newInstance0() 20 throws InstantiationException, IllegalAccessException; 21 22 private static Class forName1(java.lang.String name) 23 throws ClassNotFoundException 24 { 25 // TODO: is this the correct classloader to use? 26 java.lang.ClassLoader loader = PrimordialClassLoader.loader; 27 return forName0(name, true, loader); 28 } 29 30 private java.lang.Object newInstance2(java.lang.Class ccls) 31 throws InstantiationException, IllegalAccessException 32 { 33 // TODO: what do we do with the extra ccls argument? 34 return newInstance0(); 35 } 36 37 }