com.mchange.v2.reflect
Class ReflectUtils

java.lang.Object
  extended by com.mchange.v2.reflect.ReflectUtils

public final class ReflectUtils
extends Object


Field Summary
static Class[] PROXY_CTOR_ARGS
           
 
Method Summary
static Method findInPublicScope(Method m)
          Finds a version of the Method m in a public class or interface.
static Constructor findProxyConstructor(ClassLoader proxyClassLoader, Class intfc)
           
static Constructor findProxyConstructor(ClassLoader proxyClassLoader, Class[] interfaces)
           
static Class findPublicParent(Class cl)
           
static boolean isPublic(Class cl)
           
static boolean isPublic(Member m)
           
static Iterator traverseInterfaces(Class cl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROXY_CTOR_ARGS

public static final Class[] PROXY_CTOR_ARGS
Method Detail

findProxyConstructor

public static Constructor findProxyConstructor(ClassLoader proxyClassLoader,
                                               Class intfc)
                                        throws NoSuchMethodException
Throws:
NoSuchMethodException

findProxyConstructor

public static Constructor findProxyConstructor(ClassLoader proxyClassLoader,
                                               Class[] interfaces)
                                        throws NoSuchMethodException
Throws:
NoSuchMethodException

isPublic

public static boolean isPublic(Member m)

isPublic

public static boolean isPublic(Class cl)

findPublicParent

public static Class findPublicParent(Class cl)

traverseInterfaces

public static Iterator traverseInterfaces(Class cl)

findInPublicScope

public static Method findInPublicScope(Method m)
Finds a version of the Method m in a public class or interface. Classes versions will be found before interface versions, but no guarantees about which interface if the method is declared in both.