net.sf.cglib.core

Class ReflectUtils

public class ReflectUtils extends Object

Version: $Id: ReflectUtils.java,v 1.28 2005/06/06 17:11:23 herbyderby Exp $

Method Summary
static ListaddAllInterfaces(Class type, List list)
static ListaddAllMethods(Class type, List list)
static ClassdefineClass(String className, byte[] b, ClassLoader loader)
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 ClassInfogetClassInfo(Class clazz)
static ConstructorgetConstructor(Class type, Class[] parameterTypes)
static Type[]getExceptionTypes(Member member)
static MethodInfogetMethodInfo(Member member, int modifiers)
static MethodInfogetMethodInfo(Member member)
static String[]getNames(Class[] classes)
static Method[]getPropertyMethods(PropertyDescriptor[] properties, boolean read, boolean write)
static SignaturegetSignature(Member member)
static ObjectnewInstance(Class type)
static ObjectnewInstance(Class type, Class[] parameterTypes, Object[] args)
static ObjectnewInstance(Constructor cstruct, Object[] args)

Method Detail

addAllInterfaces

public static List addAllInterfaces(Class type, List list)

addAllMethods

public static List addAllMethods(Class type, List list)

defineClass

public static Class defineClass(String className, byte[] b, ClassLoader loader)

findConstructor

public static Constructor findConstructor(String desc)

findConstructor

public static Constructor findConstructor(String desc, ClassLoader loader)

findDeclaredMethod

public static Method findDeclaredMethod(Class type, String methodName, Class[] parameterTypes)

findInterfaceMethod

public static Method findInterfaceMethod(Class iface)

findMethod

public static Method findMethod(String desc)

findMethod

public static Method findMethod(String desc, ClassLoader loader)

findNewInstance

public static Method findNewInstance(Class iface)

findPackageProtected

public static int findPackageProtected(Class[] classes)

getBeanGetters

public static PropertyDescriptor[] getBeanGetters(Class type)

getBeanProperties

public static PropertyDescriptor[] getBeanProperties(Class type)

getBeanSetters

public static PropertyDescriptor[] getBeanSetters(Class type)

getClasses

public static Class[] getClasses(Object[] objects)

getClassInfo

public static ClassInfo getClassInfo(Class clazz)

getConstructor

public static Constructor getConstructor(Class type, Class[] parameterTypes)

getExceptionTypes

public static Type[] getExceptionTypes(Member member)

getMethodInfo

public static MethodInfo getMethodInfo(Member member, int modifiers)

getMethodInfo

public static MethodInfo getMethodInfo(Member member)

getNames

public static String[] getNames(Class[] classes)

getPropertyMethods

public static Method[] getPropertyMethods(PropertyDescriptor[] properties, boolean read, boolean write)

getSignature

public static Signature getSignature(Member member)

newInstance

public static Object newInstance(Class type)

newInstance

public static Object newInstance(Class type, Class[] parameterTypes, Object[] args)

newInstance

public static Object newInstance(Constructor cstruct, Object[] args)
Copyright (c) 2001 - Apache Software Foundation