com.mchange.v2.reflect
Class ReflectUtils

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

public final class ReflectUtils
extends java.lang.Object


Field Summary
static java.lang.Class[] PROXY_CTOR_ARGS
           
 
Method Summary
static java.lang.reflect.Method findInPublicScope(java.lang.reflect.Method m)
          Finds a version of the Method m in a public class or interface.
static java.lang.reflect.Constructor findProxyConstructor(java.lang.ClassLoader proxyClassLoader, java.lang.Class intfc)
           
static java.lang.reflect.Constructor findProxyConstructor(java.lang.ClassLoader proxyClassLoader, java.lang.Class[] interfaces)
           
static java.lang.Class findPublicParent(java.lang.Class cl)
           
static boolean isPublic(java.lang.Class cl)
           
static boolean isPublic(java.lang.reflect.Member m)
           
static java.util.Iterator traverseInterfaces(java.lang.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 java.lang.Class[] PROXY_CTOR_ARGS
Method Detail

findProxyConstructor

public static java.lang.reflect.Constructor findProxyConstructor(java.lang.ClassLoader proxyClassLoader,
                                                                 java.lang.Class intfc)
                                                          throws java.lang.NoSuchMethodException
Throws:
java.lang.NoSuchMethodException

findProxyConstructor

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

isPublic

public static boolean isPublic(java.lang.reflect.Member m)

isPublic

public static boolean isPublic(java.lang.Class cl)

findPublicParent

public static java.lang.Class findPublicParent(java.lang.Class cl)

traverseInterfaces

public static java.util.Iterator traverseInterfaces(java.lang.Class cl)

findInPublicScope

public static java.lang.reflect.Method findInPublicScope(java.lang.reflect.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.