Class Classes
java.lang.Object
org.codehaus.commons.compiler.util.reflect.Classes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MethodgetDeclaredMethod(Class<?> declaringClass, String methodName, Class<?>... parameterTypes) A wrapper fordeclaringClass.getDeclaredMethod(methodName, parameterTypes)that catches any exception, wraps it in anAssertionError, and throws that.static Class<?> load(ClassLoader classLoader, String className) A wrapper forclassLoader.loadClass(className)that catches any exception, wraps it in anAssertionError, and throws that.static Class<?>
-
Constructor Details
-
Classes
private Classes()
-
-
Method Details
-
load
-
load
A wrapper forclassLoader.loadClass(className)that catches any exception, wraps it in anAssertionError, and throws that. -
getDeclaredMethod
public static Method getDeclaredMethod(Class<?> declaringClass, String methodName, Class<?>... parameterTypes) A wrapper fordeclaringClass.getDeclaredMethod(methodName, parameterTypes)that catches any exception, wraps it in anAssertionError, and throws that.
-