类 ReflectUtils
- java.lang.Object
- org.springframework.cglib.core.ReflectUtils
public class ReflectUtils extends Object
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static ListaddAllInterfaces(Class type, List list)static ListaddAllMethods(Class type, List list)static ClassdefineClass(String className, byte[] b, ClassLoader loader)static ClassdefineClass(String className, byte[] b, ClassLoader loader, ProtectionDomain protectionDomain)static ClassdefineClass(String className, byte[] b, ClassLoader loader, ProtectionDomain protectionDomain, Class<?> contextClass)static ConstructorfindConstructor(String desc)static ConstructorfindConstructor(String desc, ClassLoader loader)static MethodfindDeclaredMethod(Class type, String methodName, Class[] parameterTypes)static MethodfindInterfaceMethod(Class iface)static MethodfindMethod(String desc)static MethodfindMethod(String desc, ClassLoader loader)static Method[]findMethods(String[] namesAndDescriptors, Method[] methods)static MethodfindNewInstance(Class iface)static intfindPackageProtected(Class[] classes)static PropertyDescriptor[]getBeanGetters(Class type)static PropertyDescriptor[]getBeanProperties(Class type)static PropertyDescriptor[]getBeanSetters(Class type)static Class[]getClasses(Object[] objects)static org.springframework.cglib.core.ClassInfogetClassInfo(Class clazz)static ConstructorgetConstructor(Class type, Class[] parameterTypes)static Type[]getExceptionTypes(Member member)static org.springframework.cglib.core.MethodInfogetMethodInfo(Member member)static org.springframework.cglib.core.MethodInfogetMethodInfo(Member member, int modifiers)static String[]getNames(Class[] classes)static Method[]getPropertyMethods(PropertyDescriptor[] properties, boolean read, boolean write)static ProtectionDomaingetProtectionDomain(Class source)static org.springframework.cglib.core.SignaturegetSignature(Member member)static ObjectnewInstance(Class type)static ObjectnewInstance(Class type, Class[] parameterTypes, Object[] args)static ObjectnewInstance(Constructor cstruct, Object[] args)
方法详细资料
getProtectionDomain
public static ProtectionDomain getProtectionDomain(Class source)
getExceptionTypes
public static Type[] getExceptionTypes(Member member)
getSignature
public static org.springframework.cglib.core.Signature getSignature(Member member)
findConstructor
public static Constructor findConstructor(String desc)
findConstructor
public static Constructor findConstructor(String desc, ClassLoader loader)
findMethod
public static Method findMethod(String desc)
findMethod
public static Method findMethod(String desc, ClassLoader loader)
newInstance
public static Object newInstance(Class type)
newInstance
public static Object newInstance(Class type, Class[] parameterTypes, Object[] args)
newInstance
public static Object newInstance(Constructor cstruct, Object[] args)
getConstructor
public static Constructor getConstructor(Class type, Class[] parameterTypes)
getClasses
public static Class[] getClasses(Object[] objects)
findNewInstance
public static Method findNewInstance(Class iface)
getPropertyMethods
public static Method[] getPropertyMethods(PropertyDescriptor[] properties, boolean read, boolean write)
getBeanProperties
public static PropertyDescriptor[] getBeanProperties(Class type)
getBeanGetters
public static PropertyDescriptor[] getBeanGetters(Class type)
getBeanSetters
public static PropertyDescriptor[] getBeanSetters(Class type)
findDeclaredMethod
public static Method findDeclaredMethod(Class type, String methodName, Class[] parameterTypes) throws NoSuchMethodException
addAllMethods
public static List addAllMethods(Class type, List list)
addAllInterfaces
public static List addAllInterfaces(Class type, List list)
findInterfaceMethod
public static Method findInterfaceMethod(Class iface)
defineClass
public static Class defineClass(String className, byte[] b, ClassLoader loader) throws Exception
- 抛出:
Exception
defineClass
public static Class defineClass(String className, byte[] b, ClassLoader loader, ProtectionDomain protectionDomain) throws Exception
- 抛出:
Exception
defineClass
public static Class defineClass(String className, byte[] b, ClassLoader loader, ProtectionDomain protectionDomain, Class<?> contextClass) throws Exception
- 抛出:
Exception
findPackageProtected
public static int findPackageProtected(Class[] classes)
getMethodInfo
public static org.springframework.cglib.core.MethodInfo getMethodInfo(Member member, int modifiers)
getMethodInfo
public static org.springframework.cglib.core.MethodInfo getMethodInfo(Member member)
getClassInfo
public static org.springframework.cglib.core.ClassInfo getClassInfo(Class clazz)
findMethods
public static Method[] findMethods(String[] namesAndDescriptors, Method[] methods)