return JavaGeneratorContext.getVisibility(this.getJavaMethod().getModifiers());
}
@SuppressWarnings("unchecked")
protected List<MethodParameter> createParameters() {
final GeneratorContext context = this.getGeneratorContext();
final List<MethodParameter> parameters = new ArrayList<MethodParameter>();
final Class[] parameterTypes = this.getJavaMethod().getParameterTypes();
final java.lang.reflect.Method javaMethod = this.getJavaMethod();
for (int i = 0; i < parameterTypes.length; i++) {
final Class parameterType = parameterTypes[i];
final JavaMethodParameterAdapter adapter = new JavaMethodParameterAdapter();
adapter.setGeneratorContext(context);
adapter.setJavaMethod(javaMethod);
adapter.setName("parameter" + i);
adapter.setType(context.getType(parameterType.getName()));
parameters.add(adapter);
}
return parameters;
}