Class Classes
java.lang.Object
org.codehaus.commons.compiler.util.reflect.Classes
Utility methods related to
Class
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.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.
-