Class JDK 1.0

java.lang serializable

Synopsis^  ?
public final class Class implements Serializable {
// No Constructor
// Public Class Methods
    public static Class forName( String className) throws ClassNotFoundException;  
2.0 public static Class forName( String name, boolean initialize, ClassLoader loader) throws ClassNotFoundException;  
// Property Accessor Methods (by property name)
1.1 public boolean isArray( ); native 
1.1 public Class[ ] getClasses( );  
    public ClassLoader getClassLoader( );  
1.1 public Class getComponentType( ); native 
1.1 public Constructor[ ] getConstructors( ) throws SecurityException;  
1.1 public Class[ ] getDeclaredClasses( ) throws SecurityException;  
1.1 public Constructor[ ] getDeclaredConstructors( ) throws SecurityException;  
1.1 public Field[ ] getDeclaredFields( ) throws SecurityException;  
1.1 public Method[ ] getDeclaredMethods( ) throws SecurityException;  
1.1 public Class getDeclaringClass( ); native 
1.1 public Field[ ] getFields( ) throws SecurityException;  
    public boolean isInterface( ); native 
    public Class[ ] getInterfaces( ); native 
1.1 public Method[ ] getMethods( ) throws SecurityException;  
1.1 public int getModifiers( ); native 
    public String getName( ); native 
2.0 public Package getPackage( );  
1.1 public boolean isPrimitive( ); native 
2.0 public ProtectionDomain getProtectionDomain( );  
1.1 public Object[ ] getSigners( ); native 
    public Class getSuperclass( ); native 
// Public Instance Methods
1.1 public Constructor getConstructor( Class[ ] parameterTypes) throws NoSuchMethodExceptionSecurityException;  
1.1 public Constructor getDeclaredConstructor( Class[ ] parameterTypes) throws NoSuchMethodExceptionSecurityException;  
1.1 public Field getDeclaredField( String name) throws NoSuchFieldExceptionSecurityException;  
1.1 public Method getDeclaredMethod( String name, Class[ ] parameterTypes) throws NoSuchMethodExceptionSecurityException;  
1.1 public Field getField( String name) throws NoSuchFieldExceptionSecurityException;  
1.1 public Method getMethod( String name, Class[ ] parameterTypes) throws NoSuchMethodExceptionSecurityException;  
1.1 public URL getResource( String name);  
1.1 public InputStream getResourceAsStream( String name);  
1.1 public boolean isAssignableFrom( Class cls); native 
1.1 public boolean isInstance( Object obj); native 
    public Object newInstance( ) throws InstantiationExceptionIllegalAccessException;  
// Public methods overriding Object
    public String toString( );  
}

Hierarchy^  ?

[Object]
   |
[Class]---<Serializable>

JavaBeans Properties^  ?

  Name    Type    Access    Default    Flags  
  array    boolean    is     read-only   
  classes    Class[ ]    get     read-only   
  classLoader    ClassLoader    get     read-only   
  componentType    Class    get     read-only   
  constructors    Constructor[ ]    get     read-only   
  declaredClasses    Class[ ]    get     read-only   
  declaredConstructors    Constructor[ ]    get     read-only   
  declaredFields    Field[ ]    get     read-only   
  declaredMethods    Method[ ]    get     read-only   
  declaringClass    Class    get     read-only   
  fields    Field[ ]    get     read-only   
  interface    boolean    is     read-only   
  interfaces    Class[ ]    get     read-only   
  methods    Method[ ]    get     read-only   
  modifiers    int    get     read-only   
  name    String    get     read-only   
  package    Package    get     read-only   
  primitive    boolean    is     read-only   
  protectionDomain    ProtectionDomain    get     read-only   
  signers    Object[ ]    get     read-only   
  superclass    Class    get     read-only   

Inherited Properties^  ?
Object: class

Inherited Methods^  ?
Object: clone(), equals(), finalize(), hashCode(), notify(), notifyAll(), wait(), wait(), wait()

Passed To^  ?
Class.{getConstructor(), getDeclaredConstructor(), getDeclaredMethod(), getMethod(), isAssignableFrom()}, ClassLoader.{resolveClass(), setSigners()}, Compiler.compileClass(), SecurityManager.checkMemberAccess()

Returned By^  ?
Class.{forName(), getClasses(), getComponentType(), getDeclaredClasses(), getDeclaringClass(), getInterfaces(), getSuperclass()}, ClassLoader.{defineClass(), findClass(), findLoadedClass(), findSystemClass(), loadClass()}, Object.getClass(), SecurityManager.{currentLoadedClass(), getClassContext()}

Type Of^  ?
Boolean.TYPE, Byte.TYPE, Character.TYPE, Double.TYPE, Float.TYPE, Integer.TYPE, Long.TYPE, Short.TYPE, Void.TYPE

Uses^  ?
ClassLoader, ClassNotFoundException, IllegalAccessException, InstantiationException, NoSuchFieldException, NoSuchMethodException, Object, Package, RuntimePermission, SecurityException, SecurityManager, String, StringBuffer, System

Used By^  ?
Boolean, Byte, Character, ClassLoader, Compiler, Double, Float, Integer, Long, Object, Package, Runtime, SecurityManager, Short, String, System, ThreadGroup, Throwable, Void


Java Power Reference. Created by David Flanagan.
Copyright © 1999 O'Reilly & Associates.All Rights Reserved.

This file may not be distributed on the Internet.