@Test public void noargMethodShouldHaveNoParameters() throws Exception { assertEquals(0, Parameter.allOf(noArgs).size()); }
public static List<Parameter> allOf(Method method) { final List<Parameter> list = new ArrayList<Parameter>(); for (int i = 0; i < method.getParameterTypes().length; i++) { list.add(new Parameter(method, i)); } return Collections.unmodifiableList(list); }
Parameter { public static List<Parameter> allOf(Method method) { final List<Parameter> list = new ArrayList<Parameter>(); for (int i = 0; i < method.getParameterTypes().length; i++) { list.add(new Parameter(method, i)); } return Collections.unmodifiableList(list); } }
Parameter { public static List<Parameter> allOf(Method method) { final List<Parameter> list = new ArrayList<Parameter>(); for (int i = 0; i < method.getParameterTypes().length; i++) { list.add(new Parameter(method, i)); } return Collections.unmodifiableList(list); } Parameter(Method method, int index); }
Parameter { public static List<Parameter> allOf(Method method) { final List<Parameter> list = new ArrayList<Parameter>(); for (int i = 0; i < method.getParameterTypes().length; i++) { list.add(new Parameter(method, i)); } return Collections.unmodifiableList(list); } Parameter(Method method, int index); static List<Parameter> allOf(Method method); boolean isAnnotationPresent(Class<T> annotationType); T getAnnotation(Class<T> annotationType); Annotation[] getAnnotations(); int getIndex(); Method getMethod(); Type getGenericType(); Class<?> getType(); String getName(); boolean isAssignable(Object value); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); }
Parameter { public static List<Parameter> allOf(Method method) { final List<Parameter> list = new ArrayList<Parameter>(); for (int i = 0; i < method.getParameterTypes().length; i++) { list.add(new Parameter(method, i)); } return Collections.unmodifiableList(list); } Parameter(Method method, int index); static List<Parameter> allOf(Method method); boolean isAnnotationPresent(Class<T> annotationType); T getAnnotation(Class<T> annotationType); Annotation[] getAnnotations(); int getIndex(); Method getMethod(); Type getGenericType(); Class<?> getType(); String getName(); boolean isAssignable(Object value); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }