}
}
}
private AnnotationDefinition buildAnnotationDef( AnnotationDescr annotationDescr, TypeResolver resolver ) {
AnnotationDefinition annotationDefinition = null;
try {
annotationDefinition = AnnotationDefinition.build( resolver.resolveType( annotationDescr.getFullyQualifiedName() ),
annotationDescr.getValueMap(),
resolver );
return annotationDefinition;
} catch ( Exception e ) {
e.printStackTrace();
annotationDefinition = new AnnotationDefinition( annotationDescr.getFullyQualifiedName() );
for ( String propKey : annotationDescr.getValues().keySet() ) {
Object value = annotationDescr.getValue( propKey );
if ( value instanceof AnnotationDescr ) {
value = buildAnnotationDef( (AnnotationDescr) value, resolver );
}
annotationDefinition.getValues().put( propKey, new AnnotationDefinition.AnnotationPropertyVal( propKey, null, value, null ) );
}
return annotationDefinition;
}
}