Package org.springframework.cglib.core
Class ReflectUtils
java.lang.Object
org.springframework.cglib.core.ReflectUtils
- 
Method Summary
Modifier and TypeMethodDescriptionstatic 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 ClassInfogetClassInfo(Class clazz) static ConstructorgetConstructor(Class type, Class[] parameterTypes) static Type[]getExceptionTypes(Member member) static MethodInfogetMethodInfo(Member member) static MethodInfogetMethodInfo(Member member, int modifiers) static String[]static Method[]getPropertyMethods(PropertyDescriptor[] properties, boolean read, boolean write) static ProtectionDomaingetProtectionDomain(Class source) static SignaturegetSignature(Member member) static Class<?>loadClass(String className, ClassLoader classLoader) static ObjectnewInstance(Class type) static ObjectnewInstance(Class type, Class[] parameterTypes, Object[] args) static ObjectnewInstance(Constructor cstruct, Object[] args) static voidsetGeneratedClassHandler(BiConsumer<String, byte[]> handler) static voidsetLoadedClassHandler(Consumer<Class<?>> loadedClassHandler)  
- 
Method Details
- 
getProtectionDomain
 - 
getExceptionTypes
 - 
getSignature
 - 
findConstructor
 - 
findConstructor
 - 
findMethod
 - 
findMethod
 - 
newInstance
 - 
newInstance
 - 
newInstance
 - 
getConstructor
 - 
getNames
 - 
getClasses
 - 
findNewInstance
 - 
getPropertyMethods
public static Method[] getPropertyMethods(PropertyDescriptor[] properties, boolean read, boolean write)  - 
getBeanProperties
 - 
getBeanGetters
 - 
getBeanSetters
 - 
findDeclaredMethod
public static Method findDeclaredMethod(Class type, String methodName, Class[] parameterTypes) throws NoSuchMethodException - Throws:
 NoSuchMethodException
 - 
addAllMethods
 - 
addAllInterfaces
 - 
findInterfaceMethod
 - 
setGeneratedClassHandler
 - 
defineClass
- Throws:
 Exception
 - 
defineClass
public static Class defineClass(String className, byte[] b, ClassLoader loader, ProtectionDomain protectionDomain) throws Exception - Throws:
 Exception
 - 
defineClass
public static Class defineClass(String className, byte[] b, ClassLoader loader, ProtectionDomain protectionDomain, Class<?> contextClass) throws Exception - Throws:
 Exception
 - 
setLoadedClassHandler
 - 
loadClass
public static Class<?> loadClass(String className, ClassLoader classLoader) throws ClassNotFoundException - Throws:
 ClassNotFoundException
 - 
findPackageProtected
 - 
getMethodInfo
 - 
getMethodInfo
 - 
getClassInfo
 - 
findMethods
 
 -