Package net.sf.cglib.core
Class ReflectUtils
java.lang.Object
net.sf.cglib.core.ReflectUtils
- Version:
- $Id: ReflectUtils.java,v 1.30 2009/01/11 19:47:49 herbyderby Exp $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String[]private static final ClassLoaderprivate static Methodprivate static Methodprivate static final Mapprivate static final ProtectionDomainprivate static final Throwableprivate static final Mapprivate static final Object -
Constructor Summary
Constructors -
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 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) private static ClassgetClass(String className, ClassLoader loader) private static ClassgetClass(String className, ClassLoader loader, String[] packages) static Class[]getClasses(Object[] objects) static ClassInfogetClassInfo(Class clazz) static ConstructorgetConstructor(Class type, Class[] parameterTypes) static org.objectweb.asm.Type[]getExceptionTypes(Member member) static MethodInfogetMethodInfo(Member member) static MethodInfogetMethodInfo(Member member, int modifiers) static String[]private static PropertyDescriptor[]getPropertiesHelper(Class type, boolean read, boolean write) static Method[]getPropertyMethods(PropertyDescriptor[] properties, boolean read, boolean write) static ProtectionDomaingetProtectionDomain(Class source) static SignaturegetSignature(Member member) static ObjectnewInstance(Class type) static ObjectnewInstance(Class type, Class[] parameterTypes, Object[] args) static ObjectnewInstance(Constructor cstruct, Object[] args) private static Class[]parseTypes(String desc, ClassLoader loader)
-
Field Details
-
primitives
-
transforms
-
defaultLoader
-
DEFINE_CLASS
-
DEFINE_CLASS_UNSAFE
-
PROTECTION_DOMAIN
-
UNSAFE
-
THROWABLE
-
OBJECT_METHODS
-
CGLIB_PACKAGES
-
-
Constructor Details
-
ReflectUtils
private ReflectUtils()
-
-
Method Details
-
getProtectionDomain
-
getExceptionTypes
-
getSignature
-
findConstructor
-
findConstructor
-
findMethod
-
findMethod
-
parseTypes
- Throws:
ClassNotFoundException
-
getClass
- Throws:
ClassNotFoundException
-
getClass
private static Class getClass(String className, ClassLoader loader, String[] packages) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
newInstance
-
newInstance
-
newInstance
-
getConstructor
-
getNames
-
getClasses
-
findNewInstance
-
getPropertyMethods
public static Method[] getPropertyMethods(PropertyDescriptor[] properties, boolean read, boolean write) -
getBeanProperties
-
getBeanGetters
-
getBeanSetters
-
getPropertiesHelper
-
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
-
findPackageProtected
-
getMethodInfo
-
getMethodInfo
-
getClassInfo
-
findMethods
-