*/
if ( parameters != null && paramTags != null
&& parameters.length == paramTags.length ) {
for ( int i = 0; i < parameters.length; i++ ) {
final Parameter parameter = parameters[i];
/* TODO: this only works if the params and tags are in the same
* order. If the param tags are mixed up, the comments for parameters
* will be wrong.
*/
final ParamTag paramTag = paramTags[i];
final ParamDocType paramDocType = new ParamDocType();
paramDocType.setParamName( paramTag.parameterName() );
paramDocType.setCommentText( paramTag.parameterComment() );
docProcessor.processParamTag( paramTag, parameter, paramDocType );
AnnotationDesc[] annotations = parameter.annotations();
if ( annotations != null ) {
for ( AnnotationDesc annotationDesc : annotations ) {
final AnnotationDocType annotationDocType = new AnnotationDocType();
final String typeName = annotationDesc.annotationType().qualifiedName();
annotationDocType.setAnnotationTypeName( typeName );