private static void workOutSetterMethodsList( AbstractResource resource, MethodList methodList, boolean isEncoded) { for (AnnotatedMethod m : methodList. hasNotMetaAnnotation(HttpMethod.class). hasNotAnnotation(Path.class). hasNumParams(1). hasReturnType(void.class). nameStartsWith("set")) { final AbstractSetterMethod asm = new AbstractSetterMethod(resource, m.getMethod(), m.getAnnotations()); Parameter p = createParameter( resource.getResourceClass(), m.getMethod().getDeclaringClass(), isEncoded, m.getParameterTypes()[0], m.getGenericParameterTypes()[0], m.getAnnotations()); if (null != p) { asm.getParameters().add(p); resource.getSetterMethods().add(asm); } } }
private static void workOutSetterMethodsList( AbstractResource resource, MethodList methodList, boolean isEncoded) { for (AnnotatedMethod m : methodList. hasNotMetaAnnotation(HttpMethod.class). hasNotAnnotation(Path.class). hasNumParams(1). hasReturnType(void.class). nameStartsWith("set")) { final AbstractSetterMethod asm = new AbstractSetterMethod(resource, m.getMethod(), m.getAnnotations()); Parameter p = createParameter( resource.getResourceClass(), m.getMethod().getDeclaringClass(), isEncoded, m.getParameterTypes()[0], m.getGenericParameterTypes()[0], m.getAnnotations()); if (null != p) { asm.getParameters().add(p); resource.getSetterMethods().add(asm); } } }
private static void workOutSetterMethodsList( AbstractResource resource, MethodList methodList, boolean isEncoded) { for (AnnotatedMethod m : methodList. hasNotMetaAnnotation(HttpMethod.class). hasNotAnnotation(Path.class). hasNumParams(1). hasReturnType(void.class). nameStartsWith("set")) { final AbstractSetterMethod asm = new AbstractSetterMethod(resource, m.getMethod(), m.getAnnotations()); Parameter p = createParameter( resource.getResourceClass(), m.getMethod().getDeclaringClass(), isEncoded, m.getParameterTypes()[0], m.getGenericParameterTypes()[0], m.getAnnotations()); if (null != p) { asm.getParameters().add(p); resource.getSetterMethods().add(asm); } } }