Package org.springframework.cglib.core
Class ReflectUtils
java.lang.Object
org.springframework.cglib.core.ReflectUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic List
addAllInterfaces
(Class type, List list) static List
addAllMethods
(Class type, List list) static Class
defineClass
(String className, byte[] b, ClassLoader loader) static Class
defineClass
(String className, byte[] b, ClassLoader loader, ProtectionDomain protectionDomain) static Class
defineClass
(String className, byte[] b, ClassLoader loader, ProtectionDomain protectionDomain, Class<?> contextClass) static Constructor
findConstructor
(String desc) static Constructor
findConstructor
(String desc, ClassLoader loader) static Method
findDeclaredMethod
(Class type, String methodName, Class[] parameterTypes) static Method
findInterfaceMethod
(Class iface) static Method
findMethod
(String desc) static Method
findMethod
(String desc, ClassLoader loader) static Method[]
findMethods
(String[] namesAndDescriptors, Method[] methods) static Method
findNewInstance
(Class iface) static int
findPackageProtected
(Class[] classes) static PropertyDescriptor[]
getBeanGetters
(Class type) static PropertyDescriptor[]
getBeanProperties
(Class type) static PropertyDescriptor[]
getBeanSetters
(Class type) static Class[]
getClasses
(Object[] objects) static ClassInfo
getClassInfo
(Class clazz) static Constructor
getConstructor
(Class type, Class[] parameterTypes) static Type[]
getExceptionTypes
(Member member) static MethodInfo
getMethodInfo
(Member member) static MethodInfo
getMethodInfo
(Member member, int modifiers) static String[]
static Method[]
getPropertyMethods
(PropertyDescriptor[] properties, boolean read, boolean write) static ProtectionDomain
getProtectionDomain
(Class source) static Signature
getSignature
(Member member) static Object
newInstance
(Class type) static Object
newInstance
(Class type, Class[] parameterTypes, Object[] args) static Object
newInstance
(Constructor cstruct, Object[] args) static void
setGeneratedClassHandler
(BiConsumer<String, byte[]> handler)
-
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
-
defineClass
- Throws:
Exception
-
defineClass
public static Class defineClass(String className, byte[] b, ClassLoader loader, ProtectionDomain protectionDomain) throws Exception - Throws:
Exception
-
setGeneratedClassHandler
-
defineClass
public static Class defineClass(String className, byte[] b, ClassLoader loader, ProtectionDomain protectionDomain, Class<?> contextClass) throws Exception - Throws:
Exception
-
findPackageProtected
-
getMethodInfo
-
getMethodInfo
-
getClassInfo
-
findMethods
-