INNER CODE UNIT · Java
wrapStatic
CodingGay/BlackDex · Bcore/black-fake/src/main/java/reflection/MirrorReflection.java:43
public static <T> StaticMethodWrapper<T> wrapStatic(Method method) {
return new StaticMethodWrapper<T>(method);
}
public <T> MethodWrapper<T> method(String name, Class<?>... parameterTypes) {
return method(clazz, name, parameterTypes);
}
public static <T> MethodWrapper<T> method(String className, String name, Class<?>... parameterTypes) {
return method(findClass(className), name, parameterTypes);
}
public static <T> MethodWrapper<T> method(Class<?> clazz, String name, Class<?>... parameterTypes) {
Method method = getMethod(clazz, name, parameterTypes);
if ((parameterTypes == null || parameterTypes.length == 0) && method == null) {
method = findMethodNoChecks(clazz, name);
}
return wrap(method);