@Test public void testForMethod() throws Exception { Method method = ConfigurableClass.class.getMethod("setValue", String.class); final ArgumentDescription[] argumentDescriptions = ArgumentDescriptionFactory.forMethod(method).resolveParameters(); assertEquals(1, argumentDescriptions.length); assertEquals(String.class, argumentDescriptions[0].getType()); assertEquals("value", argumentDescriptions[0].getName()); }
public static ArgumentDescriptionFactory<Method> forMethod(final Method method) { return new ArgumentDescriptionFactory<Method>(method, method.getParameterAnnotations(), method.getParameterTypes()); }
ArgumentDescriptionFactory { public static ArgumentDescriptionFactory<Method> forMethod(final Method method) { return new ArgumentDescriptionFactory<Method>(method, method.getParameterAnnotations(), method.getParameterTypes()); } }
ArgumentDescriptionFactory { public static ArgumentDescriptionFactory<Method> forMethod(final Method method) { return new ArgumentDescriptionFactory<Method>(method, method.getParameterAnnotations(), method.getParameterTypes()); } private  ArgumentDescriptionFactory(A accessibleObject, Annotation[][] annotations, Class<?>[] parameterTypes); }
ArgumentDescriptionFactory { public static ArgumentDescriptionFactory<Method> forMethod(final Method method) { return new ArgumentDescriptionFactory<Method>(method, method.getParameterAnnotations(), method.getParameterTypes()); } private  ArgumentDescriptionFactory(A accessibleObject, Annotation[][] annotations, Class<?>[] parameterTypes); ArgumentDescription[] resolveParameters(); static ArgumentDescriptionFactory<Constructor> create(final Constructor<?> constructor); static ArgumentDescriptionFactory<Method> forMethod(final Method method); }
ArgumentDescriptionFactory { public static ArgumentDescriptionFactory<Method> forMethod(final Method method) { return new ArgumentDescriptionFactory<Method>(method, method.getParameterAnnotations(), method.getParameterTypes()); } private  ArgumentDescriptionFactory(A accessibleObject, Annotation[][] annotations, Class<?>[] parameterTypes); ArgumentDescription[] resolveParameters(); static ArgumentDescriptionFactory<Constructor> create(final Constructor<?> constructor); static ArgumentDescriptionFactory<Method> forMethod(final Method method);  }