public final class Class<T> extends Object implements Serializable, GenericDeclaration, Type, AnnotatedElement
public boolean isArray()
public Annotation[] getAnnotations()
getAnnotations
in interface AnnotatedElement
public <A extends Annotation> A getAnnotation(Class<A> annotationCls)
getAnnotation
in interface AnnotatedElement
public boolean isAnnotation()
public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
isAnnotationPresent
in interface AnnotatedElement
public Class<?> getComponentType()
public Field[] getFields() throws SecurityException
SecurityException
public Field getDeclaredField(String fieldName) throws NoSuchFieldException, SecurityException
public Field[] getDeclaredFields() throws SecurityException
SecurityException
public Method getDeclaredMethod(String mthName, Class<?>... paramTypes) throws NoSuchMethodException, SecurityException
public Method getMethod(String mthName, Class<?>... paramTypes) throws NoSuchMethodException, SecurityException
public Method[] getDeclaredMethods() throws SecurityException
SecurityException
public Method[] getMethods() throws SecurityException
SecurityException
public Constructor<?>[] getDeclaredConstructors() throws SecurityException
SecurityException
public Constructor<?>[] getConstructors() throws SecurityException
SecurityException
public 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
ClassNotFoundException
public static Class<?> forName(String clsName, boolean initialize, ClassLoader loader) throws ClassNotFoundException
ClassNotFoundException
public boolean isPrimitive()
public T newInstance() throws InstantiationException, IllegalAccessException
public boolean desiredAssertionStatus()
public ClassLoader getClassLoader()
public TypeVariable<Class<T>>[] getTypeParameters()
getTypeParameters
in interface GenericDeclaration
public 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
SecurityException
public ProtectionDomain getProtectionDomain()
public boolean isEnum()
public Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in interface AnnotatedElement
public boolean isSynthetic()