* @return The annotation descriptor.
*/
AnnotationValueDescriptor addAnnotation(AnnotatedDescriptor annotatedDescriptor, String typeName) {
if (typeName != null) {
TypeDescriptor type = getTypeDescriptor(typeName);
AnnotationValueDescriptor annotationDescriptor = store.create(AnnotationValueDescriptor.class, annotatedDescriptor.getFullQualifiedName() + "@" + typeName);
annotationDescriptor.setType(type);
annotatedDescriptor.getAnnotatedBy().add(annotationDescriptor);
return annotationDescriptor;
}
return null;
}