类 ReflectUtils
java.lang.Object
com.alibaba.bytekit.utils.ReflectUtils
from spring
- 版本:
- $Id: ReflectUtils.java,v 1.30 2009/01/11 19:47:49 herbyderby Exp $
-
字段概要
字段 -
方法概要
修饰符和类型方法说明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 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 ConstructorgetConstructor(Class type, Class[] parameterTypes) static String[]static Method[]getPropertyMethods(PropertyDescriptor[] properties, boolean read, boolean write) static ProtectionDomaingetProtectionDomain(Class source) static ObjectnewInstance(Class type) static ObjectnewInstance(Class type, Class[] parameterTypes, Object[] args) static ObjectnewInstance(Constructor cstruct, Object[] args)
-
字段详细资料
-
EMPTY_CLASS_ARRAY
-
-
方法详细资料
-
getProtectionDomain
-
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 -
addAllMethods
-
addAllInterfaces
-
findInterfaceMethod
-
defineClass
- 抛出:
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
-