public interface AnnotatedTypeMetadata
class
or method), in a form that does not necessarily require the
class-loading.AnnotationMetadata,
MethodMetadata| 限定符和类型 | 方法和说明 |
|---|---|
MultiValueMap<String,Object> |
getAllAnnotationAttributes(String annotationName)
Retrieve all attributes of all annotations of the given type, if any (i.e. if
defined on the underlying element, as direct annotation or meta-annotation).
|
MultiValueMap<String,Object> |
getAllAnnotationAttributes(String annotationName,
boolean classValuesAsString)
Retrieve all attributes of all annotations of the given type, if any (i.e. if
defined on the underlying element, as direct annotation or meta-annotation).
|
Map<String,Object> |
getAnnotationAttributes(String annotationName)
Retrieve the attributes of the annotation of the given type, if any (i.e. if
defined on the underlying element, as direct annotation or meta-annotation),
also taking attribute overrides on composed annotations into account.
|
Map<String,Object> |
getAnnotationAttributes(String annotationName,
boolean classValuesAsString)
Retrieve the attributes of the annotation of the given type, if any (i.e. if
defined on the underlying element, as direct annotation or meta-annotation),
also taking attribute overrides on composed annotations into account.
|
boolean |
isAnnotated(String annotationName)
Determine whether the underlying element has an annotation or meta-annotation
of the given type defined.
|
boolean isAnnotated(String annotationName)
If this method returns true, then
getAnnotationAttributes(java.lang.String) will return a non-null Map.
annotationName - the fully qualified class name of the annotation
type to look forMap<String,Object> getAnnotationAttributes(String annotationName)
annotationName - the fully qualified class name of the annotation
type to look fornull if no matching annotation is defined.Map<String,Object> getAnnotationAttributes(String annotationName, boolean classValuesAsString)
annotationName - the fully qualified class name of the annotation
type to look forclassValuesAsString - whether to convert class references to String
class names for exposure as values in the returned Map, instead of Class
references which might potentially have to be loaded firstnull if no matching annotation is defined.MultiValueMap<String,Object> getAllAnnotationAttributes(String annotationName)
annotationName - the fully qualified class name of the annotation
type to look fornull if no matching annotation is defined.getAllAnnotationAttributes(String, boolean)MultiValueMap<String,Object> getAllAnnotationAttributes(String annotationName, boolean classValuesAsString)
annotationName - the fully qualified class name of the annotation
type to look forclassValuesAsString - whether to convert class references to Stringnull if no matching annotation is defined.getAllAnnotationAttributes(String)Copyright © 2020. All rights reserved.