| 程序包 | 说明 |
|---|---|
| cn.sexycode.util.core.cls |
| 限定符和类型 | 字段和说明 |
|---|---|
protected AnnotationAttributes |
AbstractRecursiveAnnotationVisitor.attributes |
| 限定符和类型 | 字段和说明 |
|---|---|
protected LinkedMultiValueMap<String,AnnotationAttributes> |
MethodMetadataReadingVisitor.attributesMap |
protected LinkedMultiValueMap<String,AnnotationAttributes> |
AnnotationMetadataReadingVisitor.attributesMap
Declared as a
LinkedMultiValueMap instead of a MultiValueMap
to ensure that the hierarchical ordering of the entries is preserved. |
| 限定符和类型 | 方法和说明 |
|---|---|
static AnnotationAttributes |
AnnotationReadingVisitorUtils.convertClassValues(Object annotatedElement,
ClassLoader classLoader,
AnnotationAttributes original,
boolean classValuesAsString) |
static AnnotationAttributes |
AnnotationAttributes.fromMap(Map<String,Object> map)
Return an
AnnotationAttributes instance based on the given map. |
AnnotationAttributes |
AnnotationAttributes.getAnnotation(String attributeName)
Get the
AnnotationAttributes stored under the specified
attributeName. |
AnnotationAttributes[] |
AnnotationAttributes.getAnnotationArray(String attributeName)
Get the array of
AnnotationAttributes stored under the specified
attributeName. |
static AnnotationAttributes |
AnnotationUtils.getAnnotationAttributes(AnnotatedElement annotatedElement,
Annotation annotation)
Retrieve the given annotation's attributes as an
AnnotationAttributes map. |
static AnnotationAttributes |
AnnotationUtils.getAnnotationAttributes(AnnotatedElement annotatedElement,
Annotation annotation,
boolean classValuesAsString,
boolean nestedAnnotationsAsMap)
Retrieve the given annotation's attributes as an
AnnotationAttributes map. |
static AnnotationAttributes |
AnnotationUtils.getAnnotationAttributes(Annotation annotation,
boolean classValuesAsString,
boolean nestedAnnotationsAsMap)
Retrieve the given annotation's attributes as an
AnnotationAttributes map. |
AnnotationAttributes |
MethodMetadataReadingVisitor.getAnnotationAttributes(String annotationName) |
AnnotationAttributes |
AnnotationMetadataReadingVisitor.getAnnotationAttributes(String annotationName) |
AnnotationAttributes |
MethodMetadataReadingVisitor.getAnnotationAttributes(String annotationName,
boolean classValuesAsString) |
AnnotationAttributes |
AnnotationMetadataReadingVisitor.getAnnotationAttributes(String annotationName,
boolean classValuesAsString) |
static AnnotationAttributes |
AnnotationReadingVisitorUtils.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. |
(专用程序包) static AnnotationAttributes |
AnnotationUtils.retrieveAnnotationAttributes(Object annotatedElement,
Annotation annotation,
boolean classValuesAsString,
boolean nestedAnnotationsAsMap)
Retrieve the given annotation's attributes as an
AnnotationAttributes map. |
| 限定符和类型 | 方法和说明 |
|---|---|
static AnnotationAttributes |
AnnotationReadingVisitorUtils.convertClassValues(Object annotatedElement,
ClassLoader classLoader,
AnnotationAttributes original,
boolean classValuesAsString) |
static void |
AnnotationUtils.postProcessAnnotationAttributes(Object annotatedElement,
AnnotationAttributes attributes,
boolean classValuesAsString)
Post-process the supplied
AnnotationAttributes, preserving nested
annotations as Annotation instances. |
(专用程序包) static void |
AnnotationUtils.postProcessAnnotationAttributes(Object annotatedElement,
AnnotationAttributes attributes,
boolean classValuesAsString,
boolean nestedAnnotationsAsMap)
Post-process the supplied
AnnotationAttributes. |
static void |
AnnotationUtils.registerDefaultValues(AnnotationAttributes attributes)
Register the annotation-declared default values for the given attributes,
if available.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static AnnotationAttributes |
AnnotationReadingVisitorUtils.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. |
| 构造器和说明 |
|---|
AbstractRecursiveAnnotationVisitor(ClassLoader classLoader,
AnnotationAttributes attributes) |
AnnotationAttributes(AnnotationAttributes other)
Create a new
AnnotationAttributes instance, wrapping the provided
map and all its key-value pairs. |
RecursiveAnnotationArrayVisitor(String attributeName,
AnnotationAttributes attributes,
ClassLoader classLoader) |
RecursiveAnnotationAttributesVisitor(String annotationType,
AnnotationAttributes attributes,
ClassLoader classLoader) |
| 构造器和说明 |
|---|
AnnotationAttributesReadingVisitor(String annotationType,
MultiValueMap<String,AnnotationAttributes> attributesMap,
Map<String,Set<String>> metaAnnotationMap,
ClassLoader classLoader) |
Copyright © 2020. All rights reserved.