| Modifier and Type | Method and Description |
|---|---|
static Method |
getDeclaredMethod(Class<?> declaringClass,
String methodName,
Class<?>... parameterTypes)
A wrapper for {@link Class#getDeclaredMethod(String, Class...)
|
static Class<?> |
load(ClassLoader classLoader,
String className)
A wrapper for
classLoader.loadClass(className) that
catches any exception, wraps it in an AssertionError, and throws that. |
static Class<?> |
load(String className)
|
public static Class<?> load(ClassLoader classLoader, String className)
classLoader.loadClass(className) that
catches any exception, wraps it in an AssertionError, and throws that.public static Method getDeclaredMethod(Class<?> declaringClass, String methodName, Class<?>... parameterTypes)
declaringClass.getDeclaredMethod(methodName, parameterTypes) that catches any
exception, wraps it in an AssertionError, and throws that.Copyright © 2021. All rights reserved.