Package com.mchange.v2.reflect
Class ReflectUtils
- java.lang.Object
-
- com.mchange.v2.reflect.ReflectUtils
-
public final class ReflectUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Class[]PROXY_CTOR_ARGS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.reflect.MethodfindInPublicScope(java.lang.reflect.Method m)Finds a version of the Method m in a public class or interface.static java.lang.reflect.ConstructorfindProxyConstructor(java.lang.ClassLoader proxyClassLoader, java.lang.Class intfc)static java.lang.reflect.ConstructorfindProxyConstructor(java.lang.ClassLoader proxyClassLoader, java.lang.Class[] interfaces)static java.lang.ClassfindPublicParent(java.lang.Class cl)static booleanisPublic(java.lang.Class cl)static booleanisPublic(java.lang.reflect.Member m)static java.util.IteratortraverseInterfaces(java.lang.Class cl)
-
-
-
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.
-
-