Avian v0.3

java.lang
Class Class<T>

java.lang.Object
  extended by java.lang.Class<T>
All Implemented Interfaces:
AnnotatedElement, GenericDeclaration, Type

public final class Class<T>
extends Object
implements Type, GenericDeclaration, AnnotatedElement


Field Summary
 ClassAddendum addendum
           
 Field[] fieldTable
           
 Object[] interfaceTable
           
 Method[] methodTable
           
 Class super_
           
 Method[] virtualTable
           
 short vmFlags
           
 
Method Summary
<T> Class<? extends T>
asSubclass(Class<T> c)
           
 T cast(Object o)
           
 boolean desiredAssertionStatus()
           
static Class forCanonicalName(ClassLoader loader, String name)
           
static Class forCanonicalName(String name)
           
static Class forName(String name)
           
static Class forName(String name, boolean initialize, ClassLoader loader)
           
<T extends Annotation>
T
getAnnotation(Class<T> class_)
           
 Annotation[] getAnnotations()
           
 String getCanonicalName()
           
 ClassLoader getClassLoader()
           
 Class getComponentType()
           
 Constructor getConstructor(Class... parameterTypes)
           
 Constructor[] getConstructors()
           
 Annotation[] getDeclaredAnnotations()
           
 Class[] getDeclaredClasses()
           
 Constructor getDeclaredConstructor(Class... parameterTypes)
           
 Constructor[] getDeclaredConstructors()
           
 Field getDeclaredField(String name)
           
 Field[] getDeclaredFields()
           
 Method getDeclaredMethod(String name, Class... parameterTypes)
           
 Method[] getDeclaredMethods()
           
 Class getEnclosingClass()
           
 Constructor getEnclosingConstructor()
           
 Method getEnclosingMethod()
           
 T[] getEnumConstants()
           
 Field getField(String name)
           
 Field[] getFields()
           
 Class[] getInterfaces()
           
 Method getMethod(String name, Class... parameterTypes)
           
 Method[] getMethods()
           
 int getModifiers()
           
 String getName()
           
 Package getPackage()
           
 ProtectionDomain getProtectionDomain()
           
 URL getResource(String path)
           
 InputStream getResourceAsStream(String path)
           
 Object[] getSigners()
           
 String getSimpleName()
           
 Class getSuperclass()
           
 TypeVariable<Class<T>>[] getTypeParameters()
           
 boolean isAnnotationPresent(Class<? extends Annotation> class_)
           
 boolean isArray()
           
 boolean isAssignableFrom(Class c)
           
 boolean isEnum()
           
 boolean isInstance(Object o)
           
 boolean isInterface()
           
 boolean isPrimitive()
           
 T newInstance()
           
 Object staticTable()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

vmFlags

public short vmFlags

super_

public Class super_

interfaceTable

public Object[] interfaceTable

virtualTable

public Method[] virtualTable

fieldTable

public Field[] fieldTable

methodTable

public Method[] methodTable

addendum

public ClassAddendum addendum
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getName

public String getName()

getCanonicalName

public String getCanonicalName()

getSimpleName

public String getSimpleName()

staticTable

public Object staticTable()

newInstance

public T newInstance()
              throws IllegalAccessException,
                     InstantiationException
Throws:
IllegalAccessException
InstantiationException

forName

public static Class forName(String name)
                     throws ClassNotFoundException
Throws:
ClassNotFoundException

forName

public static Class forName(String name,
                            boolean initialize,
                            ClassLoader loader)
                     throws ClassNotFoundException
Throws:
ClassNotFoundException

forCanonicalName

public static Class forCanonicalName(String name)

forCanonicalName

public static Class forCanonicalName(ClassLoader loader,
                                     String name)

getComponentType

public Class getComponentType()

isAssignableFrom

public boolean isAssignableFrom(Class c)

getDeclaredField

public Field getDeclaredField(String name)
                       throws NoSuchFieldException
Throws:
NoSuchFieldException

getField

public Field getField(String name)
               throws NoSuchFieldException
Throws:
NoSuchFieldException

getDeclaredMethod

public Method getDeclaredMethod(String name,
                                Class... parameterTypes)
                         throws NoSuchMethodException
Throws:
NoSuchMethodException

getMethod

public Method getMethod(String name,
                        Class... parameterTypes)
                 throws NoSuchMethodException
Throws:
NoSuchMethodException

getConstructor

public Constructor getConstructor(Class... parameterTypes)
                           throws NoSuchMethodException
Throws:
NoSuchMethodException

getDeclaredConstructor

public Constructor getDeclaredConstructor(Class... parameterTypes)
                                   throws NoSuchMethodException
Throws:
NoSuchMethodException

getDeclaredConstructors

public Constructor[] getDeclaredConstructors()

getConstructors

public Constructor[] getConstructors()

getDeclaredFields

public Field[] getDeclaredFields()

getFields

public Field[] getFields()

getDeclaredMethods

public Method[] getDeclaredMethods()

getMethods

public Method[] getMethods()

getInterfaces

public Class[] getInterfaces()

getEnumConstants

public T[] getEnumConstants()

getClassLoader

public ClassLoader getClassLoader()

getModifiers

public int getModifiers()

isInterface

public boolean isInterface()

getSuperclass

public Class getSuperclass()

isArray

public boolean isArray()

isInstance

public boolean isInstance(Object o)

isPrimitive

public boolean isPrimitive()

getResource

public URL getResource(String path)

getResourceAsStream

public InputStream getResourceAsStream(String path)

desiredAssertionStatus

public boolean desiredAssertionStatus()

asSubclass

public <T> Class<? extends T> asSubclass(Class<T> c)

cast

public T cast(Object o)

getSigners

public Object[] getSigners()

getPackage

public Package getPackage()

isAnnotationPresent

public boolean isAnnotationPresent(Class<? extends Annotation> class_)
Specified by:
isAnnotationPresent in interface AnnotatedElement

getAnnotation

public <T extends Annotation> T getAnnotation(Class<T> class_)
Specified by:
getAnnotation in interface AnnotatedElement

getDeclaredAnnotations

public Annotation[] getDeclaredAnnotations()
Specified by:
getDeclaredAnnotations in interface AnnotatedElement

getAnnotations

public Annotation[] getAnnotations()
Specified by:
getAnnotations in interface AnnotatedElement

isEnum

public boolean isEnum()

getTypeParameters

public TypeVariable<Class<T>>[] getTypeParameters()
Specified by:
getTypeParameters in interface GenericDeclaration

getEnclosingMethod

public Method getEnclosingMethod()

getEnclosingConstructor

public Constructor getEnclosingConstructor()

getEnclosingClass

public Class getEnclosingClass()

getDeclaredClasses

public Class[] getDeclaredClasses()

getProtectionDomain

public ProtectionDomain getProtectionDomain()

Avian v0.3

http://oss.readytalk.com/avian