INNER CODE UNIT · Java

wrap

CodingGay/BlackDex · Bcore/black-fake/src/main/java/reflection/MirrorReflection.java:39

    public static <T> MethodWrapper<T> wrap(Method method) {
        return new MethodWrapper<T>(method);
    }

    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);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…