Java in a Nutshell Online Quick Reference for Java 1.1

CLASS java.lang.Class

Availability: JDK 1.0

public final class Class extends Object implements Serializable {
   // No Constructor
   // Class Methods
      public static native Class forName(String className) throws ClassNotFoundException;
   // Public Instance Methods
      public native ClassLoader getClassLoader();
1.1  public Class[] getClasses();
1.1  public native Class getComponentType();
1.1  public Constructor getConstructor(Class[] parameterTypes) throws NoSuchMethodException, SecurityException;
1.1  public Constructor[] getConstructors() throws SecurityException;
1.1  public Class[] getDeclaredClasses() throws SecurityException;
1.1  public Constructor getDeclaredConstructor(Class[] parameterTypes) throws NoSuchMethodException, SecurityException;
1.1  public Constructor[] getDeclaredConstructors() throws SecurityException;
1.1  public Field getDeclaredField(String name) throws NoSuchFieldException, SecurityException;
1.1  public Field[] getDeclaredFields() throws SecurityException;
1.1  public Method getDeclaredMethod(String name, Class[] parameterTypes) throws NoSuchMethodException, SecurityException;
1.1  public Method[] getDeclaredMethods() throws SecurityException;
1.1  public Class getDeclaringClass();
1.1  public Field getField(String name) throws NoSuchFieldException, SecurityException;
1.1  public Field[] getFields() throws SecurityException;
      public native Class[] getInterfaces();
1.1  public Method getMethod(String name, Class[] parameterTypes) throws NoSuchMethodException, SecurityException;
1.1  public Method[] getMethods() throws SecurityException;
1.1  public native int getModifiers();
      public native String getName();
1.1  public URL getResource(String name);
1.1  public InputStream getResourceAsStream(String name);
1.1  public native Object[] getSigners();
      public native Class getSuperclass();
1.1  public native boolean isArray();
1.1  public native boolean isAssignableFrom(Class cls);
1.1  public native boolean isInstance(Object obj);
      public native boolean isInterface();
1.1  public native boolean isPrimitive();
      public native Object newInstance() throws InstantiationException, IllegalAccessException;
      public String toString();  // Overrides Object.toString()
}
Passed To:
Array.newInstance(), BeanDescriptor.BeanDescriptor(), Beans.getInstanceOf(), Beans.isInstanceOf(), Class.getConstructor(), Class.getDeclaredConstructor(), Class.getDeclaredMethod(), Class.getMethod(), Class.isAssignableFrom(), ClassLoader.resolveClass(), ClassLoader.setSigners(), Compiler.compileClass(), DataFlavor.DataFlavor(), EventSetDescriptor.EventSetDescriptor(), IndexedPropertyDescriptor.IndexedPropertyDescriptor(), Introspector.getBeanInfo(), ObjectOutputStream.annotateClass(), ObjectStreamClass.lookup(), PropertyDescriptor.PropertyDescriptor(), PropertyDescriptor.setPropertyEditorClass(), PropertyEditorManager.findEditor(), PropertyEditorManager.registerEditor(), RMISecurityManager.checkMemberAccess(), SecurityManager.checkMemberAccess().
Returned By:
BeanDescriptor.getBeanClass(), BeanDescriptor.getCustomizerClass(), Class.forName(), Class.getClasses(), Class.getComponentType(), Class.getDeclaredClasses(), Class.getDeclaringClass(), Class.getInterfaces(), Class.getSuperclass(), ClassLoader.defineClass(), ClassLoader.findLoadedClass(), ClassLoader.findSystemClass(), ClassLoader.loadClass(), Constructor.getDeclaringClass(), Constructor.getExceptionTypes(), Constructor.getParameterTypes(), DataFlavor.getRepresentationClass(), EventSetDescriptor.getListenerType(), Field.getDeclaringClass(), Field.getType(), IndexedPropertyDescriptor.getIndexedPropertyType(), LoaderHandler.loadClass(), Member.getDeclaringClass(), Method.getDeclaringClass(), Method.getExceptionTypes(), Method.getParameterTypes(), Method.getReturnType(), Object.getClass(), ObjectInputStream.resolveClass(), ObjectStreamClass.forClass(), PropertyDescriptor.getPropertyEditorClass(), PropertyDescriptor.getPropertyType(), RMIClassLoader.loadClass(), SecurityManager.currentLoadedClass(), SecurityManager.getClassContext().
Type Of:
Boolean.TYPE, Byte.TYPE, Character.TYPE, Double.TYPE, Float.TYPE, Integer.TYPE, Long.TYPE, Short.TYPE, Void.TYPE.

Java in a Nutshell Online Quick Reference for Java 1.1
Created by David Flanagan. Copyright © 1997 by O'Reilly & Associates.