private void initVariables(Service service) { resourceName = jaxrsNames.getInterfaceName(service); helperName = new JavaClassName(resourceName.getPackageName(), resourceName.getSimpleName() + "Helper"); serviceMethods = service.getDeclaredMethods(); baseMethods = jaxrsGeneratorUtils.getBaseMethodsMap(serviceMethods); javaBuffer = new JavaClassBuffer(); javaBuffer.setClassName(helperName); javaBuffer.addImport(resourceName); }
List<Method> methods = service.getDeclaredMethods(); Map<Method, Set<Method>> baseMethods = jaxrsGeneratorUtils.getBaseMethodsMap(methods); methods.forEach(x -> generateMethod(x, helperClassName, baseMethods));