public final class KlassInfo extends Object
public static KlassInfo create(Class<?> clazz)
clazz - - 原始对象public <T> Class<T> getType()
public String getName()
public String getSimpleName()
public KlassInfo getSuperKlass()
public Annotation[] getAnnotations()
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
public <T extends Annotation> boolean isAnnotationPresent(Class<T> annotationClass)
public int getModifiers()
public boolean isInterface()
public boolean isAbstract()
public boolean isStatic()
public boolean isPrivate()
public boolean isProtected()
public boolean isPublic()
public List<ConstructorInfo> getDeclaredConstructors()
public ConstructorInfo getDeclaredConstructor(Class<?>... parameterTypes)
parameterTypes - - 匹配的构造函数参数public ConstructorInfo searchDeclaredConstructor(Class<?>... parameterTypes)
parameterTypes - - 匹配的构造函数参数public ConstructorInfo getDeclaredConstructor(Constructor<?> constructor)
public ConstructorInfo getDefaultConstructor()
public List<MethodInfo> getDeclaredMethods()
public List<MethodInfo> getDeclaredMethods(Filters.MethodFilter filter)
public MethodInfo getDeclaredMethod(String name, Class<?>... parameterTypes)
public MethodInfo getDeclaredMethod(Method method)
public List<MethodInfo> getMethods()
public List<MethodInfo> getMethods(Filters.MethodFilter filter)
public MethodInfo getMethod(String name, Class<?>... parameterTypes)
parameterTypes - - 匹配的方法参数public MethodInfo searchMethod(String name, Class<?>... parameterTypes)
parameterTypes - - 匹配的方法参数public List<FieldInfo> getDeclaredFields(Filters.FieldFilter filter)
public List<FieldInfo> getFields(Filters.FieldFilter filter)
public List<PropertyInfo> getProperties()
public PropertyInfo getProperty(String name)
public Object newInstance() throws IllegalStateException
IllegalStateException - - 如果找不到默认的构造函数或者没有访问权限,那么抛出该异常.Copyright © 2016 jetbrick. All rights reserved.