* @param qualifiedAnnotationType The FQN of the annotation
* @param key The field name of the annotation to get
* @return The values or null if none were found
*/
public ClassDoc[] getAnnotationClassDocValues(String qualifiedAnnotationType, String key) {
AnnotationDesc annotation = getAnnotation(qualifiedAnnotationType);
if (annotation == null) {
return null;
}
for (AnnotationDesc.ElementValuePair evp : annotation.elementValues()) {
if (evp.element().name().equals(key)) {
Object val = evp.value().value();
AnnotationValue[] vals = (AnnotationValue[]) val;
if (vals != null && vals.length > 0) {
ClassDoc[] res = new ClassDoc[vals.length];