Package net.sf.cglib.core
Class ReflectUtils
- java.lang.Object
-
- net.sf.cglib.core.ReflectUtils
-
public class ReflectUtils extends Object
- Version:
- $Id: ReflectUtils.java,v 1.30 2009/01/11 19:47:49 herbyderby Exp $
-
-
Method Summary
-
-
-
Method Detail
-
getProtectionDomain
public static ProtectionDomain getProtectionDomain(Class source)
-
getExceptionTypes
public static org.objectweb.asm.Type[] getExceptionTypes(Member member)
-
findConstructor
public static Constructor findConstructor(String desc)
-
findConstructor
public static Constructor findConstructor(String desc, ClassLoader loader)
-
findMethod
public static Method findMethod(String desc, ClassLoader loader)
-
newInstance
public static Object newInstance(Constructor cstruct, Object[] args)
-
getConstructor
public static Constructor getConstructor(Class type, Class[] parameterTypes)
-
getPropertyMethods
public static Method[] getPropertyMethods(PropertyDescriptor[] properties, boolean read, boolean write)
-
getBeanProperties
public static PropertyDescriptor[] getBeanProperties(Class type)
-
getBeanGetters
public static PropertyDescriptor[] getBeanGetters(Class type)
-
getBeanSetters
public static PropertyDescriptor[] getBeanSetters(Class type)
-
findDeclaredMethod
public static Method findDeclaredMethod(Class type, String methodName, Class[] parameterTypes) throws NoSuchMethodException
- Throws:
NoSuchMethodException
-
defineClass
public static Class defineClass(String className, byte[] b, ClassLoader loader) throws Exception
- Throws:
Exception
-
defineClass
public static Class defineClass(String className, byte[] b, ClassLoader loader, ProtectionDomain protectionDomain) throws Exception
- Throws:
Exception
-
findPackageProtected
public static int findPackageProtected(Class[] classes)
-
getMethodInfo
public static MethodInfo getMethodInfo(Member member, int modifiers)
-
getMethodInfo
public static MethodInfo getMethodInfo(Member member)
-
-