@Test public void test_findWithBoxedType() { Proc proc = Procs.invoke(ReflectiveProcTest.class, "count", Integer.class); assertThat(proc.call(7).hasResult(), is(true)); assertThat(counter, is(7)); }
public static ReflectiveProc invoke(Class clazz, String name, Class... paramTypes) { Method m = Signatures.bestMethod(clazz, name, paramTypes); if (m == null) { throw notFound(clazz, name, paramTypes); } return new ReflectiveProc(null, m); }
ReflectiveProc extends PN { public static ReflectiveProc invoke(Class clazz, String name, Class... paramTypes) { Method m = Signatures.bestMethod(clazz, name, paramTypes); if (m == null) { throw notFound(clazz, name, paramTypes); } return new ReflectiveProc(null, m); } }
ReflectiveProc extends PN { public static ReflectiveProc invoke(Class clazz, String name, Class... paramTypes) { Method m = Signatures.bestMethod(clazz, name, paramTypes); if (m == null) { throw notFound(clazz, name, paramTypes); } return new ReflectiveProc(null, m); } ReflectiveProc(Object instance, Method method);  ReflectiveProc(Constructor constructor); }
ReflectiveProc extends PN { public static ReflectiveProc invoke(Class clazz, String name, Class... paramTypes) { Method m = Signatures.bestMethod(clazz, name, paramTypes); if (m == null) { throw notFound(clazz, name, paramTypes); } return new ReflectiveProc(null, m); } ReflectiveProc(Object instance, Method method);  ReflectiveProc(Constructor constructor); static Class[] anyParameters(int count); static ReflectiveProc newInstance(Class<?> clazz, Class... paramTypes); static PN newInstanceWith(Class<?> clazz, Object... args); static ReflectiveProc invoke(Class clazz, String name, Class... paramTypes); static ReflectiveProc invoke(Object object, String name, Class... paramTypes); static PN invokeWith(Class clazz, String name, Object... args); static PN invokeWith(Object object, String name, Object... args); }
ReflectiveProc extends PN { public static ReflectiveProc invoke(Class clazz, String name, Class... paramTypes) { Method m = Signatures.bestMethod(clazz, name, paramTypes); if (m == null) { throw notFound(clazz, name, paramTypes); } return new ReflectiveProc(null, m); } ReflectiveProc(Object instance, Method method);  ReflectiveProc(Constructor constructor); static Class[] anyParameters(int count); static ReflectiveProc newInstance(Class<?> clazz, Class... paramTypes); static PN newInstanceWith(Class<?> clazz, Object... args); static ReflectiveProc invoke(Class clazz, String name, Class... paramTypes); static ReflectiveProc invoke(Object object, String name, Class... paramTypes); static PN invokeWith(Class clazz, String name, Object... args); static PN invokeWith(Object object, String name, Object... args); static final Class[] ANY_PARAMETERS; static final Class[] NO_PARAMETERS; }