Class Classes
- java.lang.Object
-
- org.codehaus.commons.compiler.util.reflect.Classes
-
public final class Classes extends java.lang.ObjectUtility methods related toClass.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.reflect.MethodgetDeclaredMethod(java.lang.Class<?> declaringClass, java.lang.String methodName, java.lang.Class<?>... parameterTypes)A wrapper fordeclaringClass.getDeclaredMethod(methodName, parameterTypes)that catches any exception, wraps it in anAssertionError, and throws that.static java.lang.Class<?>load(java.lang.ClassLoader classLoader, java.lang.String className)A wrapper forclassLoader.loadClass(className)that catches any exception, wraps it in anAssertionError, and throws that.static java.lang.Class<?>load(java.lang.String className)
-
-
-
Method Detail
-
load
public static java.lang.Class<?> load(java.lang.String className)
-
load
public static java.lang.Class<?> load(java.lang.ClassLoader classLoader, java.lang.String className)A wrapper forclassLoader.loadClass(className)that catches any exception, wraps it in anAssertionError, and throws that.
-
getDeclaredMethod
public static java.lang.reflect.Method getDeclaredMethod(java.lang.Class<?> declaringClass, java.lang.String methodName, java.lang.Class<?>... parameterTypes)A wrapper fordeclaringClass.getDeclaredMethod(methodName, parameterTypes)that catches any exception, wraps it in anAssertionError, and throws that.
-
-