public class ReflectUtils extends Object
Modifier and Type | Method and Description |
---|---|
static 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 org.springframework.cglib.core.ClassInfo |
getClassInfo(Class clazz) |
static Constructor |
getConstructor(Class type,
Class[] parameterTypes) |
static Type[] |
getExceptionTypes(Member member) |
static org.springframework.cglib.core.MethodInfo |
getMethodInfo(Member member) |
static org.springframework.cglib.core.MethodInfo |
getMethodInfo(Member member,
int modifiers) |
static String[] |
getNames(Class[] classes) |
static Method[] |
getPropertyMethods(PropertyDescriptor[] properties,
boolean read,
boolean write) |
static ProtectionDomain |
getProtectionDomain(Class source) |
static org.springframework.cglib.core.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) |
public static ProtectionDomain getProtectionDomain(Class source)
public static org.springframework.cglib.core.Signature getSignature(Member member)
public static Constructor findConstructor(String desc)
public static Constructor findConstructor(String desc, ClassLoader loader)
public static Method findMethod(String desc, ClassLoader loader)
public static Object newInstance(Constructor cstruct, Object[] args)
public static Constructor getConstructor(Class type, Class[] parameterTypes)
public static Method[] getPropertyMethods(PropertyDescriptor[] properties, boolean read, boolean write)
public static PropertyDescriptor[] getBeanProperties(Class type)
public static PropertyDescriptor[] getBeanGetters(Class type)
public static PropertyDescriptor[] getBeanSetters(Class type)
public static Method findDeclaredMethod(Class type, String methodName, Class[] parameterTypes) throws NoSuchMethodException
NoSuchMethodException
public static Class defineClass(String className, byte[] b, ClassLoader loader) throws Exception
Exception
public static Class defineClass(String className, byte[] b, ClassLoader loader, ProtectionDomain protectionDomain) throws Exception
Exception
public static Class defineClass(String className, byte[] b, ClassLoader loader, ProtectionDomain protectionDomain, Class<?> contextClass) throws Exception
Exception
public static int findPackageProtected(Class[] classes)
public static org.springframework.cglib.core.MethodInfo getMethodInfo(Member member, int modifiers)
public static org.springframework.cglib.core.MethodInfo getMethodInfo(Member member)
public static org.springframework.cglib.core.ClassInfo getClassInfo(Class clazz)