public List<MethodDescriptionComposite> convertMethods() {
List<MethodDescriptionComposite> mdcList = new
ArrayList<MethodDescriptionComposite>();
for (Method method : methods) {
if (!ConverterUtils.isInherited(method, declaringClass)) {
MethodDescriptionComposite mdc = new MethodDescriptionComposite();
setExceptionList(mdc, method);
mdc.setMethodName(method.getName());
setReturnType(mdc, method);
mdc.setDeclaringClass(method.getDeclaringClass().getName());
attachHandlerChainAnnotation(mdc, method);
attachOnewayAnnotation(mdc, method);
attachSoapBindingAnnotation(mdc, method);
attachRequestWrapperAnnotation(mdc, method);
attachResponseWrapperAnnotation(mdc, method);
attachWebEndpointAnnotation(mdc, method);
attachWebMethodAnnotation(mdc, method);
attachWebResultAnnotation(mdc, method);
attachWebServiceRefAnnotation(mdc, method);
if (method.getGenericParameterTypes().length > 0) {
JavaParamToPDCConverter paramConverter = new JavaParamToPDCConverter(
method.getGenericParameterTypes(), method.getParameterAnnotations());
List<ParameterDescriptionComposite> pdcList = paramConverter.
convertParams();
ConverterUtils.attachParameterDescriptionComposites(pdcList, mdc);
}
mdcList.add(mdc);
}
}
for (Constructor constructor : constructors) {
MethodDescriptionComposite mdc = new MethodDescriptionComposite();
mdc.setMethodName("<init>");
mdc.setDeclaringClass(constructor.getDeclaringClass().getName());
mdcList.add(mdc);
if (constructor.getGenericParameterTypes().length > 0) {
JavaParamToPDCConverter paramConverter = new JavaParamToPDCConverter(
constructor.getGenericParameterTypes(),
constructor.getParameterAnnotations());