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 |
---|---|
default MultiValueMap<String,Object> |
getAllAnnotationAttributes(String annotationName)
Retrieve all attributes of all annotations of the given type, if any (i.e.
|
default MultiValueMap<String,Object> |
getAllAnnotationAttributes(String annotationName,
boolean classValuesAsString)
Retrieve all attributes of all annotations of the given type, if any (i.e.
|
default Map<String,Object> |
getAnnotationAttributes(String annotationName)
Retrieve the attributes of the annotation of the given type, if any (i.e.
|
default Map<String,Object> |
getAnnotationAttributes(String annotationName,
boolean classValuesAsString)
Retrieve the attributes of the annotation of the given type, if any (i.e.
|
MergedAnnotations |
getAnnotations()
Return annotation details based on the direct annotations of the
underlying element.
|
default boolean |
isAnnotated(String annotationName)
Determine whether the underlying element has an annotation or meta-annotation
of the given type defined.
|
MergedAnnotations getAnnotations()
default 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 for@Nullable default Map<String,Object> getAnnotationAttributes(String annotationName)
annotationName
- the fully qualified class name of the annotation
type to look fornull
if no matching annotation is defined.@Nullable default 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.@Nullable default 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)
@Nullable default 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)