abstract class AnnotationReadingVisitorUtils extends Object
| 构造器和说明 |
|---|
AnnotationReadingVisitorUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static AnnotationAttributes |
convertClassValues(Object annotatedElement,
ClassLoader classLoader,
AnnotationAttributes original,
boolean classValuesAsString) |
static AnnotationAttributes |
getMergedAnnotationAttributes(LinkedMultiValueMap<String,AnnotationAttributes> attributesMap,
Map<String,Set<String>> metaAnnotationMap,
String annotationName)
Retrieve the merged attributes of the annotation of the given type,
if any, from the supplied
attributesMap. |
public static AnnotationAttributes convertClassValues(Object annotatedElement, ClassLoader classLoader, AnnotationAttributes original, boolean classValuesAsString)
public static AnnotationAttributes getMergedAnnotationAttributes(LinkedMultiValueMap<String,AnnotationAttributes> attributesMap, Map<String,Set<String>> metaAnnotationMap, String annotationName)
attributesMap.
Annotation attribute values appearing lower in the annotation hierarchy (i.e., closer to the declaring class) will override those defined higher in the annotation hierarchy.
attributesMap - the map of annotation attribute lists, keyed by
annotation type namemetaAnnotationMap - the map of meta annotation relationships,
keyed by annotation type nameannotationName - the fully qualified class name of the annotation
type to look fornull if no
matching annotation is present in the attributesMapCopyright © 2020. All rights reserved.