/** * * @param resourceClass * @param method * @param p * @return param doc type */ public ParamDocType getParamDoc( Class<?> resourceClass, Method method, Parameter p ) { final MethodDocType methodDoc = getMethodDoc( resourceClass, method ); if ( methodDoc != null ) { for ( ParamDocType paramDocType : methodDoc.getParamDocs() ) { for ( AnnotationDocType annotationDocType : paramDocType.getAnnotationDocs() ) { final Class<? extends Annotation> annotationType = p.getAnnotation().annotationType(); if ( annotationType != null ) { final String sourceName = getSourceName(annotationDocType); if ( sourceName != null && sourceName.equals( p.getSourceName() ) ) { return paramDocType; } } } } } return null; }
/** * * @param resourceClass * @param method * @param p * @return param doc type */ public ParamDocType getParamDoc( Class<?> resourceClass, Method method, Parameter p ) { final MethodDocType methodDoc = getMethodDoc( resourceClass, method ); if ( methodDoc != null ) { for ( ParamDocType paramDocType : methodDoc.getParamDocs() ) { for ( AnnotationDocType annotationDocType : paramDocType.getAnnotationDocs() ) { final Class<? extends Annotation> annotationType = p.getAnnotation().annotationType(); if ( annotationType != null ) { final String sourceName = getSourceName(annotationDocType); if ( sourceName != null && sourceName.equals( p.getSourceName() ) ) { return paramDocType; } } } } } return null; }
/** * * @param resourceClass * @param method * @param p * @return param doc type */ public ParamDocType getParamDoc( Class<?> resourceClass, Method method, Parameter p ) { final MethodDocType methodDoc = getMethodDoc( resourceClass, method ); if ( methodDoc != null ) { for ( ParamDocType paramDocType : methodDoc.getParamDocs() ) { for ( AnnotationDocType annotationDocType : paramDocType.getAnnotationDocs() ) { final Class<? extends Annotation> annotationType = p.getAnnotation().annotationType(); if ( annotationType != null ) { final String sourceName = getSourceName(annotationDocType); if ( sourceName != null && sourceName.equals( p.getSourceName() ) ) { return paramDocType; } } } } } return null; }
methodDocType.getParamDocs().add( paramDocType );