Save This Page
Home » apache-harmony-6.0-src-r917296-snapshot » java » lang » [javadoc | source]
java.lang
public final class: Class [javadoc | source]
java.lang.Object
   java.lang.Class

All Implemented Interfaces:
    AnnotatedElement, GenericDeclaration, Type, Serializable

Runtime representation of a class
Field Summary
static volatile  boolean disableAssertions    Global/system assertion status package private to access from the java.lang.ClassLoader class. 
static  ProtectionDomain systemDomain     
 ClassLoader definingLoader    Provides strong referencing between the classloader and it's defined classes. Intended for class unloading implementation.
    Also see:
    java.lang.ClassLoader#loadedClasses
 
transient  SoftReference<GACache> softCache     
Method from java.lang.Class Summary:
asSubclass,   cast,   desiredAssertionStatus,   forName,   forName,   getAnnotation,   getAnnotations,   getCanonicalName,   getClassLoader,   getClassLoaderImpl,   getClasses,   getComponentType,   getConstructor,   getConstructors,   getDeclaredAnnotations,   getDeclaredClasses,   getDeclaredConstructor,   getDeclaredConstructors,   getDeclaredField,   getDeclaredFields,   getDeclaredMethod,   getDeclaredMethods,   getDeclaringClass,   getEnclosingClass,   getEnclosingConstructor,   getEnclosingMethod,   getEnumConstants,   getField,   getFields,   getGenericInterfaces,   getGenericSuperclass,   getInterfaces,   getMethod,   getMethods,   getModifiers,   getName,   getPackage,   getPackageName,   getProtectionDomain,   getResource,   getResourceAsStream,   getSigners,   getSimpleName,   getStackClasses,   getSuperclass,   getTypeParameters,   isAnnotation,   isAnnotationPresent,   isAnonymousClass,   isArray,   isAssignableFrom,   isEnum,   isInstance,   isInterface,   isLocalClass,   isMemberClass,   isPrimitive,   isSynthetic,   isTypeMatches,   newInstance,   setProtectionDomain,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.lang.Class Detail:
 public Class<? extends U> asSubclass(Class<U> clazz) throws ClassCastException 
 public T cast(Object obj) throws ClassCastException 
 public boolean desiredAssertionStatus() 
 public static Class<?> forName(String name) throws ClassNotFoundException 
 public static Class<?> forName(String name,
    boolean initialize,
    ClassLoader classLoader) throws ClassNotFoundException 
 public A getAnnotation(Class<A> annotationClass) 
 public Annotation[] getAnnotations() 
 public String getCanonicalName() 
 public ClassLoader getClassLoader() 
 final ClassLoader getClassLoaderImpl() 
    VMI method
 public Class[] getClasses() 
    Note: We don't check member access permission for each super class. Java 1.5 API specification doesn't require this check.
 public Class<?> getComponentType() 
 public Constructor<T> getConstructor(Class argumentTypes) throws NoSuchMethodException 
 public Constructor[] getConstructors() 
 public Annotation[] getDeclaredAnnotations() 
 public Class[] getDeclaredClasses() 
 public Constructor<T> getDeclaredConstructor(Class argumentTypes) throws NoSuchMethodException 
 public Constructor[] getDeclaredConstructors() 
 public Field getDeclaredField(String fieldName) throws NoSuchFieldException 
 public Field[] getDeclaredFields() 
 public Method getDeclaredMethod(String methodName,
    Class argumentTypes) throws NoSuchMethodException 
 public Method[] getDeclaredMethods() 
 public Class<?> getDeclaringClass() 
 public Class<?> getEnclosingClass() 
 public Constructor<?> getEnclosingConstructor() 
 public Method getEnclosingMethod() 
 public T[] getEnumConstants() 
 public Field getField(String fieldName) throws NoSuchFieldException 
 public Field[] getFields() 
 public Type[] getGenericInterfaces() throws GenericSignatureFormatError, TypeNotPresentException, MalformedParameterizedTypeException 
 public Type getGenericSuperclass() throws GenericSignatureFormatError, TypeNotPresentException, MalformedParameterizedTypeException 
 public Class[] getInterfaces() 
 public Method getMethod(String methodName,
    Class argumentTypes) throws NoSuchMethodException 
 public Method[] getMethods() 
 public int getModifiers() 
 public String getName() 
 public Package getPackage() 
 String getPackageName() 
 public ProtectionDomain getProtectionDomain() 
 public URL getResource(String resource) 
 public InputStream getResourceAsStream(String resource) 
 public Object[] getSigners() 
 public String getSimpleName() 
 static final Class<?>[] getStackClasses(int maxDepth,
    boolean stopAtPrivileged) 
    VMI method
 public Class<? super T> getSuperclass() 
 public TypeVariable<T>[] getTypeParameters() throws GenericSignatureFormatError 
 public boolean isAnnotation() 
 public boolean isAnnotationPresent(Class<Annotation> annotationClass) 
 public boolean isAnonymousClass() 
 public boolean isArray() 
 public boolean isAssignableFrom(Class<?> clazz) 
 public boolean isEnum() 
 public boolean isInstance(Object obj) 
 public boolean isInterface() 
 public boolean isLocalClass() 
 public boolean isMemberClass() 
 public boolean isPrimitive() 
 public boolean isSynthetic() 
 static boolean isTypeMatches(Class<?>[] t1,
    Class<?>[] t2) 
    Answers whether the arrays are equal
 public T newInstance() throws InstantiationException, IllegalAccessException 
  void setProtectionDomain(ProtectionDomain protectionDomain) 
 public String toString()