public final class Class<T> extends Object implements Serializable, GenericDeclaration, Type, AnnotatedElement
public boolean isArray()
public Annotation[] getAnnotations()
getAnnotations in interface AnnotatedElementpublic <A extends Annotation> A getAnnotation(Class<A> annotationCls)
getAnnotation in interface AnnotatedElementpublic boolean isAnnotation()
public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
isAnnotationPresent in interface AnnotatedElementpublic Class<?> getComponentType()
public Field[] getFields() throws SecurityException
SecurityExceptionpublic Field getDeclaredField(String fieldName) throws NoSuchFieldException, SecurityException
public Field[] getDeclaredFields() throws SecurityException
SecurityExceptionpublic Method getDeclaredMethod(String mthName, Class<?>... paramTypes) throws NoSuchMethodException, SecurityException
public Method getMethod(String mthName, Class<?>... paramTypes) throws NoSuchMethodException, SecurityException
public Method[] getDeclaredMethods() throws SecurityException
SecurityExceptionpublic Method[] getMethods() throws SecurityException
SecurityExceptionpublic Constructor<?>[] getDeclaredConstructors() throws SecurityException
SecurityExceptionpublic Constructor<?>[] getConstructors() throws SecurityException
SecurityExceptionpublic InputStream getResourceAsStream(String name)
public Package getPackage()
public T[] getEnumConstants()
public Constructor<T> getDeclaredConstructor(Class<?>... paramTypes) throws NoSuchMethodException, SecurityException
public Field getField(String fieldName) throws NoSuchFieldException, SecurityException
public boolean isInstance(Object o)
public boolean isAssignableFrom(Class<?> clazz)
public boolean isInterface()
public Constructor<T> getConstructor(Class<?>... argTypes) throws NoSuchMethodException, SecurityException
public int getModifiers()
public Class<?>[] getInterfaces()
public String getName()
public String getSimpleName()
public static Class<?> forName(String clsName) throws ClassNotFoundException
ClassNotFoundExceptionpublic static Class<?> forName(String clsName, boolean initialize, ClassLoader loader) throws ClassNotFoundException
ClassNotFoundExceptionpublic boolean isPrimitive()
public T newInstance() throws InstantiationException, IllegalAccessException
public boolean desiredAssertionStatus()
public ClassLoader getClassLoader()
public TypeVariable<Class<T>>[] getTypeParameters()
getTypeParameters in interface GenericDeclarationpublic Type getGenericSuperclass()
public Type[] getGenericInterfaces()
public Object[] getSigners()
public Method getEnclosingMethod()
public Constructor<?> getEnclosingConstructor()
public Class<?> getDeclaringClass()
public Class<?> getEnclosingClass()
public String getCanonicalName()
public boolean isAnonymousClass()
public boolean isLocalClass()
public boolean isMemberClass()
public Class<?>[] getClasses()
public Class<?>[] getDeclaredClasses() throws SecurityException
SecurityExceptionpublic ProtectionDomain getProtectionDomain()
public boolean isEnum()
public Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations in interface AnnotatedElementpublic boolean isSynthetic()