java.lang
Class Class<T>
java.lang.Object
java.lang.Class<T>
- All Implemented Interfaces:
- AnnotatedElement, GenericDeclaration, Type
public final class Class<T>
- extends Object
- implements Type, GenericDeclaration, AnnotatedElement
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
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()
http://oss.readytalk.com/avian