for ( AnnotationDesc annotationDesc : annotations ) {
final AnnotationDocType annotationDocType = new AnnotationDocType();
final String typeName = annotationDesc.annotationType().qualifiedName();
annotationDocType.setAnnotationTypeName( typeName );
for ( ElementValuePair elementValuePair : annotationDesc.elementValues() ) {
final NamedValueType namedValueType = new NamedValueType();
namedValueType.setName( elementValuePair.element().name() );
namedValueType.setValue( elementValuePair.value().value().toString() );
annotationDocType.getAttributeDocs().add( namedValueType );
}
paramDocType.getAnnotationDocs().add( annotationDocType );
}
}