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 annotationName)
Retrieve all attributes of all annotations of the given type, if any (i.e.
|
MultiValueMap<String,Object> |
getAllAnnotationAttributes(String annotationName,
boolean classValuesAsString)
Retrieve all attributes of all annotations of the given type, if any (i.e.
|
Map<String,Object> |
getAnnotationAttributes(String annotationName)
Retrieve the attributes of the annotation of the given type, if any (i.e.
|
Map<String,Object> |
getAnnotationAttributes(String annotationName,
boolean classValuesAsString)
Retrieve the attributes of the annotation of the given type, if any (i.e.
|
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)