public interface AnnotatedTypeMetadata
class
or method
), in a form that does not necessarily require the
class-loading.AnnotationMetadata
,
MethodMetadata
Modifier and Type | Method and Description |
---|---|
MultiValueMap<String,Object> |
getAllAnnotationAttributes(String annotationType)
Retrieve all attributes of all annotations of the given type, if any (i.e.
|
MultiValueMap<String,Object> |
getAllAnnotationAttributes(String annotationType,
boolean classValuesAsString)
Retrieve all attributes of all annotations of the given type, if any (i.e.
|
Map<String,Object> |
getAnnotationAttributes(String annotationType)
Retrieve the attributes of the annotation of the given type, if any (i.e.
|
Map<String,Object> |
getAnnotationAttributes(String annotationType,
boolean classValuesAsString)
Retrieve the attributes of the annotation of the given type, if any (i.e.
|
boolean |
isAnnotated(String annotationType)
Determine whether the underlying element has an annotation or meta-annotation
of the given type defined.
|
boolean isAnnotated(String annotationType)
If this method returns true
, then
getAnnotationAttributes(java.lang.String)
will return a non-null Map.
annotationType
- the annotation type to look forMap<String,Object> getAnnotationAttributes(String annotationType)
annotationType
- the annotation type to look fornull
if no matching annotation is defined.Map<String,Object> getAnnotationAttributes(String annotationType, boolean classValuesAsString)
annotationType
- 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 annotationType)
annotationType
- the annotation type to look fornull
if no matching annotation is defined.getAllAnnotationAttributes(String, boolean)
MultiValueMap<String,Object> getAllAnnotationAttributes(String annotationType, boolean classValuesAsString)
annotationType
- the annotation type to look forclassValuesAsString
- whether to convert class references to Stringnull
if no matching annotation is defined.getAllAnnotationAttributes(String)