abstract class AnnotationReadingVisitorUtils
extends java.lang.Object
Constructor and Description |
---|
AnnotationReadingVisitorUtils() |
Modifier and Type | Method and Description |
---|---|
static AnnotationAttributes |
convertClassValues(java.lang.ClassLoader classLoader,
AnnotationAttributes original,
boolean classValuesAsString) |
static AnnotationAttributes |
getMergedAnnotationAttributes(LinkedMultiValueMap<java.lang.String,AnnotationAttributes> attributesMap,
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> metaAnnotationMap,
java.lang.String annotationName)
Retrieve the merged attributes of the annotation of the given type,
if any, from the supplied
attributesMap . |
public static AnnotationAttributes convertClassValues(java.lang.ClassLoader classLoader, AnnotationAttributes original, boolean classValuesAsString)
public static AnnotationAttributes getMergedAnnotationAttributes(LinkedMultiValueMap<java.lang.String,AnnotationAttributes> attributesMap, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> metaAnnotationMap, java.lang.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 attributesMap