public interface AnnotationMetadataDelegate extends AnnotationMetadataProvider, AnnotationMetadata
AnnotationMetadata
 to the AnnotationMetadataProvider.getAnnotationMetadata() method.CLASS_NAME_SUFFIX, EMPTY_METADATA, VALUE_MEMBEREMPTY| Modifier and Type | Method and Description | 
|---|---|
default Optional<Class> | 
classValue(Class<? extends Annotation> annotation)
The value of the annotation as a Class. 
 | 
default Optional<Class> | 
classValue(Class<? extends Annotation> annotation,
          String member)
The value of the annotation as a Class. 
 | 
default Optional<Class> | 
classValue(String annotation)
The value of the annotation as a Class. 
 | 
default Optional<Class> | 
classValue(String annotation,
          String member)
The value of the annotation as a Class. 
 | 
default OptionalDouble | 
doubleValue(String annotation,
           String member)
The value as an  
OptionalDouble for the given annotation and member. | 
default <T extends Annotation> | 
findAnnotation(Class<T> annotation)
Find an  
AnnotationValue for the given annotation type. | 
default <T extends Annotation> | 
findAnnotation(String annotation)
Find an  
AnnotationValue for the given annotation name. | 
default <T extends Annotation> | 
findDeclaredAnnotation(Class<T> annotation)
Get all of the values for the given annotation that are directly declared on the annotated element. 
 | 
default <T extends Annotation> | 
findDeclaredAnnotation(String annotation)
Get all of the values for the given annotation that are directly declared on the annotated element. 
 | 
default <T extends Annotation> | 
getAnnotation(Class<T> annotation)
Find an  
AnnotationValue for the given annotation name. | 
default <T extends Annotation> | 
getAnnotation(String annotation)
Find an  
AnnotationValue for the given annotation name. | 
default Optional<String> | 
getAnnotationNameByStereotype(Class<? extends Annotation> stereotype)
Find the first annotation name for the given stereotype. 
 | 
default Optional<String> | 
getAnnotationNameByStereotype(String stereotype)
Find the first annotation name for the given stereotype. 
 | 
default Set<String> | 
getAnnotationNames()
All the annotation names this metadata declares. 
 | 
default List<String> | 
getAnnotationNamesByStereotype(Class<? extends Annotation> stereotype)
Resolve all of the annotation names that feature the given stereotype. 
 | 
default List<String> | 
getAnnotationNamesByStereotype(String stereotype)
Resolve all of the annotation names that feature the given stereotype. 
 | 
default Optional<Class<? extends Annotation>> | 
getAnnotationType(String name)
Gets the type for a given annotation if it is present on the classpath. 
 | 
default Optional<Class<? extends Annotation>> | 
getAnnotationTypeByStereotype(Class<? extends Annotation> stereotype)
Find the first annotation name for the given stereotype. 
 | 
default Optional<Class<? extends Annotation>> | 
getAnnotationTypeByStereotype(String stereotype)
Find the first annotation name for the given stereotype. 
 | 
default List<Class<? extends Annotation>> | 
getAnnotationTypesByStereotype(Class<? extends Annotation> stereotype)
Resolve all of the annotation names that feature the given stereotype. 
 | 
default <T extends Annotation> | 
getAnnotationValuesByType(Class<T> annotationType)
Gets all the annotation values by the given repeatable type. 
 | 
default <T extends Annotation> | 
getDeclaredAnnotation(Class<T> annotation)
Find an  
AnnotationValue for the given annotation name. | 
default <T extends Annotation> | 
getDeclaredAnnotation(String annotation)
Get all of the values for the given annotation that are directly declared on the annotated element. 
 | 
default Optional<String> | 
getDeclaredAnnotationNameByStereotype(String stereotype)
Find the first annotation name for the given stereotype. 
 | 
default Set<String> | 
getDeclaredAnnotationNames()
All the declared annotation names this metadata declares. 
 | 
default List<String> | 
getDeclaredAnnotationNamesByStereotype(String stereotype)
Resolve all of the annotations names for the given stereotype that are declared annotations. 
 | 
default Optional<Class<? extends Annotation>> | 
getDeclaredAnnotationTypeByStereotype(Class<? extends Annotation> stereotype)
Find the first declared annotation name for the given stereotype. 
 | 
default Optional<Class<? extends Annotation>> | 
getDeclaredAnnotationTypeByStereotype(String stereotype)
Find the first annotation name for the given stereotype. 
 | 
default <T extends Annotation> | 
getDeclaredAnnotationValuesByType(Class<T> annotationType)
Gets only declared annotation values by the given repeatable type. 
 | 
default <T> Optional<T> | 
getDefaultValue(Class<? extends Annotation> annotation,
               String member,
               Argument<T> requiredType)
Return the default value for the given annotation member. 
 | 
default <T> Optional<T> | 
getDefaultValue(Class<? extends Annotation> annotation,
               String member,
               Class<T> requiredType)
Return the default value for the given annotation member. 
 | 
default <T> Optional<T> | 
getDefaultValue(String annotation,
               String member,
               Argument<T> requiredType)
Return the default value for the given annotation member. 
 | 
default <T> Optional<T> | 
getDefaultValue(String annotation,
               String member,
               Class<T> requiredType)
Return the default value for the given annotation member. 
 | 
default Optional<Object> | 
getValue(Class<? extends Annotation> annotation)
Get the value of default "value" the given annotation. 
 | 
default <T> Optional<T> | 
getValue(Class<? extends Annotation> annotation,
        Argument<T> requiredType)
Get the value of default "value" the given annotation. 
 | 
default <T> Optional<T> | 
getValue(Class<? extends Annotation> annotation,
        Class<T> requiredType)
Get the value of default "value" the given annotation. 
 | 
default Optional<Object> | 
getValue(Class<? extends Annotation> annotation,
        String member)
Get the value of the given annotation member. 
 | 
default <T> Optional<T> | 
getValue(Class<? extends Annotation> annotation,
        String member,
        Argument<T> requiredType)
Get the value of the given annotation member. 
 | 
default <T> Optional<T> | 
getValue(Class<? extends Annotation> annotation,
        String member,
        Class<T> requiredType)
Get the value of the given annotation member. 
 | 
default Optional<Object> | 
getValue(String annotation)
Get the value of default "value" the given annotation. 
 | 
default <T> Optional<T> | 
getValue(String annotation,
        Argument<T> requiredType)
Get the value of default "value" the given annotation. 
 | 
default <T> Optional<T> | 
getValue(String annotation,
        Class<T> requiredType)
Get the value of default "value" the given annotation. 
 | 
default Optional<Object> | 
getValue(String annotation,
        String member)
Get the value of the given annotation member. 
 | 
default <T> Optional<T> | 
getValue(String annotation,
        String member,
        Argument<T> requiredType)
Get the value of the given annotation member. 
 | 
default <T> Optional<T> | 
getValue(String annotation,
        String member,
        Class<T> requiredType)
Get the value of the given annotation member. 
 | 
default <T> OptionalValues<T> | 
getValues(Class<? extends Annotation> annotation,
         Class<T> valueType)
Get all of the values for the given annotation. 
 | 
default <T> OptionalValues<T> | 
getValues(String annotation,
         Class<T> valueType)
Get all of the values for the given annotation and type of the underlying values. 
 | 
default boolean | 
hasAnnotation(Class<? extends Annotation> annotation)
Checks whether this object has the given annotation on the object itself or inherited from a parent. 
 | 
default boolean | 
hasAnnotation(String annotation)
Checks whether this object has the given annotation on the object itself or inherited from a parent. 
 | 
default boolean | 
hasDeclaredAnnotation(Class<? extends Annotation> annotation)
Checks whether this object has the given annotation directly declared on the object. 
 | 
default boolean | 
hasDeclaredAnnotation(String annotation)
Checks whether this object has the given annotation directly declared on the object. 
 | 
default boolean | 
hasDeclaredStereotype(Class<? extends Annotation>... annotations)
Checks whether this object has any of the given stereotype directly declared on the object. 
 | 
default boolean | 
hasDeclaredStereotype(Class<? extends Annotation> stereotype)
Checks whether this object has the given stereotype directly declared on the object. 
 | 
default boolean | 
hasDeclaredStereotype(String annotation)
Checks whether this object has the given annotation stereotype on the object itself and not inherited from a parent 
 | 
default boolean | 
hasStereotype(Class<? extends Annotation>... annotations)
Check whether any of the given stereotypes is present. 
 | 
default boolean | 
hasStereotype(Class<? extends Annotation> annotation)
Checks whether this object has the given annotation stereotype on the object itself or inherited from a parent 
 | 
default boolean | 
hasStereotype(String annotation)
Checks whether this object has the given annotation stereotype on the object itself or inherited from a parent 
 | 
default boolean | 
hasStereotype(String[] annotations)
Check whether any of the given stereotypes is present. 
 | 
default OptionalInt | 
intValue(String annotation,
        String member)
The value as an  
OptionalInt for the given annotation and member. | 
default boolean | 
isAnnotationPresent(Class<? extends Annotation> annotationClass)
Return whether an annotation is present. 
 | 
default boolean | 
isDeclaredAnnotationPresent(Class<? extends Annotation> annotationClass)
Variation of  
AnnotationSource.isAnnotationPresent(Class) for declared annotations. | 
default boolean | 
isEmpty()
Is the annotation metadata empty. 
 | 
default boolean | 
isFalse(Class<? extends Annotation> annotation,
       String member)
Returns whether the value of the given member is true. 
 | 
default boolean | 
isFalse(String annotation,
       String member)
Returns whether the value of the given member is true. 
 | 
default boolean | 
isPresent(Class<? extends Annotation> annotation,
         String member)
Returns whether the value of the given member is true. 
 | 
default boolean | 
isPresent(String annotation,
         String member)
Returns whether the value of the given member is present. 
 | 
default boolean | 
isTrue(Class<? extends Annotation> annotation,
      String member)
Returns whether the value of the given member is true. 
 | 
default boolean | 
isTrue(String annotation,
      String member)
Returns whether the value of the given member is true. 
 | 
default OptionalLong | 
longValue(String annotation,
         String member)
The value as an  
OptionalLong for the given annotation and member. | 
default <T extends Annotation> | 
synthesize(Class<T> annotationClass)
Synthesizes a new annotation from the metadata for the given annotation type. 
 | 
default Annotation[] | 
synthesizeAll()
Synthesizes a new annotations from the metadata. 
 | 
default <T extends Annotation> | 
synthesizeAnnotationsByType(Class<T> annotationClass)
Synthesizes a new annotations from the metadata for the given type. 
 | 
default Annotation[] | 
synthesizeDeclared()
Synthesizes a new annotations from the metadata. 
 | 
default <T extends Annotation> | 
synthesizeDeclared(Class<T> annotationClass)
Synthesizes a new annotation from the metadata for the given annotation type. 
 | 
default <T extends Annotation> | 
synthesizeDeclaredAnnotationsByType(Class<T> annotationClass)
Synthesizes a new annotations from the metadata for the given type. 
 | 
getAnnotationMetadatadefault <T> Optional<T> getValue(String annotation, Argument<T> requiredType)
AnnotationMetadatagetValue in interface AnnotationMetadataT - Generic typeannotation - The annotation classrequiredType - requiredTypeOptional of the valuedefault <T> Optional<T> getValue(Class<? extends Annotation> annotation, Argument<T> requiredType)
AnnotationMetadatagetValue in interface AnnotationMetadataT - Generic typeannotation - The annotation classrequiredType - requiredTypeOptional of the valuedefault <T> Optional<T> getValue(String annotation, String member, Argument<T> requiredType)
AnnotationMetadatagetValue in interface AnnotationMetadataT - The valueannotation - The annotation classmember - The annotation memberrequiredType - The required typeOptional of the valuedefault <T> Optional<T> getDefaultValue(String annotation, String member, Argument<T> requiredType)
AnnotationMetadatagetDefaultValue in interface AnnotationMetadataT - The required generic typeannotation - The annotationmember - The memberrequiredType - The required typedefault <T> Optional<T> getDefaultValue(Class<? extends Annotation> annotation, String member, Argument<T> requiredType)
AnnotationMetadatagetDefaultValue in interface AnnotationMetadataT - The required generic typeannotation - The annotationmember - The memberrequiredType - The required typedefault <T> Optional<T> getValue(Class<? extends Annotation> annotation, String member, Argument<T> requiredType)
AnnotationMetadatagetValue in interface AnnotationMetadataT - The valueannotation - The annotation classmember - The annotation memberrequiredType - The required typeOptional of the valuedefault <T extends Annotation> T synthesizeDeclared(Class<T> annotationClass)
AnnotationSourceThis method ignores inherited annotations. (Returns null if no annotations are directly present on this element.)
synthesizeDeclared in interface AnnotationMetadataProvidersynthesizeDeclared in interface AnnotationSourceT - The annotation generic typeannotationClass - The annotation classdefault <T extends Annotation> T[] synthesizeAnnotationsByType(Class<T> annotationClass)
AnnotationSourcesynthesizeAnnotationsByType in interface AnnotationMetadataProvidersynthesizeAnnotationsByType in interface AnnotationSourceT - The annotation generic typeannotationClass - The annotation typedefault <T extends Annotation> T[] synthesizeDeclaredAnnotationsByType(Class<T> annotationClass)
AnnotationSourcesynthesizeDeclaredAnnotationsByType in interface AnnotationMetadataProvidersynthesizeDeclaredAnnotationsByType in interface AnnotationSourceT - The annotation generic typeannotationClass - The annotation type@Nullable default <T extends Annotation> AnnotationValue<T> getAnnotation(String annotation)
AnnotationSourceAnnotationValue for the given annotation name.getAnnotation in interface AnnotationSourceT - The annotation typeannotation - The annotation nameAnnotationValue instance or null@Nullable default <T extends Annotation> AnnotationValue<T> getAnnotation(Class<T> annotation)
AnnotationSourceAnnotationValue for the given annotation name.getAnnotation in interface AnnotationSourceT - The annotation typeannotation - The annotation nameAnnotationValue instance or null@Nullable default <T extends Annotation> AnnotationValue<T> getDeclaredAnnotation(String annotation)
AnnotationSourcegetDeclaredAnnotation in interface AnnotationSourceT - The annotation typeannotation - The annotation nameAnnotationValue instancedefault <T extends Annotation> Optional<AnnotationValue<T>> findDeclaredAnnotation(Class<T> annotation)
AnnotationSourcefindDeclaredAnnotation in interface AnnotationMetadatafindDeclaredAnnotation in interface AnnotationMetadataProviderfindDeclaredAnnotation in interface AnnotationSourceT - The annotation typeannotation - The annotation nameAnnotationValue instance@Nullable default <T extends Annotation> AnnotationValue<T> getDeclaredAnnotation(Class<T> annotation)
AnnotationSourceAnnotationValue for the given annotation name.getDeclaredAnnotation in interface AnnotationSourceT - The annotation typeannotation - The annotation nameAnnotationValue instance or nulldefault boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
AnnotationSourceisAnnotationPresent in interface AnnotationMetadataisAnnotationPresent in interface AnnotationMetadataProviderisAnnotationPresent in interface AnnotationSourceannotationClass - The annotation classAnnotationSource.isAnnotationPresent(Class)default boolean isDeclaredAnnotationPresent(Class<? extends Annotation> annotationClass)
AnnotationSourceAnnotationSource.isAnnotationPresent(Class) for declared annotations.isDeclaredAnnotationPresent in interface AnnotationMetadataisDeclaredAnnotationPresent in interface AnnotationMetadataProviderisDeclaredAnnotationPresent in interface AnnotationSourceannotationClass - The annotation classAnnotationSource.isAnnotationPresent(Class)default <T> Optional<T> getDefaultValue(Class<? extends Annotation> annotation, String member, Class<T> requiredType)
AnnotationMetadatagetDefaultValue in interface AnnotationMetadataT - The required generic typeannotation - The annotationmember - The memberrequiredType - The required typedefault <T> Optional<T> getValue(Class<? extends Annotation> annotation, String member, Class<T> requiredType)
AnnotationMetadatagetValue in interface AnnotationMetadataT - The valueannotation - The annotation classmember - The annotation memberrequiredType - The required typeOptional of the valuedefault Optional<String> getAnnotationNameByStereotype(String stereotype)
AnnotationMetadatagetAnnotationNameByStereotype in interface AnnotationMetadatastereotype - The stereotypedefault Optional<String> getDeclaredAnnotationNameByStereotype(String stereotype)
AnnotationMetadatagetDeclaredAnnotationNameByStereotype in interface AnnotationMetadatastereotype - The stereotypedefault Optional<Class<? extends Annotation>> getAnnotationTypeByStereotype(Class<? extends Annotation> stereotype)
AnnotationMetadatagetAnnotationTypeByStereotype in interface AnnotationMetadatastereotype - The stereotypedefault Optional<Class<? extends Annotation>> getDeclaredAnnotationTypeByStereotype(Class<? extends Annotation> stereotype)
AnnotationMetadatagetDeclaredAnnotationTypeByStereotype in interface AnnotationMetadatastereotype - The stereotypedefault Optional<Class<? extends Annotation>> getDeclaredAnnotationTypeByStereotype(String stereotype)
AnnotationMetadatagetDeclaredAnnotationTypeByStereotype in interface AnnotationMetadatastereotype - The stereotypedefault Optional<Class<? extends Annotation>> getAnnotationTypeByStereotype(String stereotype)
AnnotationMetadatagetAnnotationTypeByStereotype in interface AnnotationMetadatastereotype - The stereotypedefault Optional<String> getAnnotationNameByStereotype(Class<? extends Annotation> stereotype)
AnnotationMetadatagetAnnotationNameByStereotype in interface AnnotationMetadatastereotype - The stereotypedefault <T> OptionalValues<T> getValues(Class<? extends Annotation> annotation, Class<T> valueType)
AnnotationMetadatagetValues in interface AnnotationMetadataT - Generic typeannotation - The annotation namevalueType - valueTypeOptionalValuesdefault List<String> getAnnotationNamesByStereotype(Class<? extends Annotation> stereotype)
AnnotationMetadatagetAnnotationNamesByStereotype in interface AnnotationMetadatastereotype - The annotation namesdefault List<Class<? extends Annotation>> getAnnotationTypesByStereotype(Class<? extends Annotation> stereotype)
AnnotationMetadatagetAnnotationTypesByStereotype in interface AnnotationMetadatastereotype - The annotation namesdefault <T extends Annotation> Optional<AnnotationValue<T>> findAnnotation(Class<T> annotation)
AnnotationSourceAnnotationValue for the given annotation type.findAnnotation in interface AnnotationMetadatafindAnnotation in interface AnnotationMetadataProviderfindAnnotation in interface AnnotationSourceT - The annotation typeannotation - The annotationAnnotationValue instancedefault <T> Optional<T> getValue(String annotation, String member, Class<T> requiredType)
AnnotationMetadatagetValue in interface AnnotationMetadataT - The valueannotation - The annotation classmember - The annotation memberrequiredType - The required typeOptional of the valuedefault OptionalLong longValue(String annotation, String member)
AnnotationMetadataOptionalLong for the given annotation and member.longValue in interface AnnotationMetadataannotation - The annotationmember - The memberOptionalLong valuedefault Optional<Class> classValue(String annotation)
AnnotationMetadataclassValue in interface AnnotationMetadataannotation - The annotationOptional classdefault Optional<Class> classValue(String annotation, String member)
AnnotationMetadataclassValue in interface AnnotationMetadataannotation - The annotationmember - The annotation memberOptional classdefault Optional<Class> classValue(Class<? extends Annotation> annotation)
AnnotationMetadataclassValue in interface AnnotationMetadataannotation - The annotationOptional classdefault Optional<Class> classValue(Class<? extends Annotation> annotation, String member)
AnnotationMetadataclassValue in interface AnnotationMetadataannotation - The annotationmember - The annotation memberOptional classdefault OptionalInt intValue(String annotation, String member)
AnnotationMetadataOptionalInt for the given annotation and member.intValue in interface AnnotationMetadataannotation - The annotationmember - The memberOptionalInt valuedefault OptionalDouble doubleValue(String annotation, String member)
AnnotationMetadataOptionalDouble for the given annotation and member.doubleValue in interface AnnotationMetadataannotation - The annotationmember - The memberOptionalDouble valuedefault <T> Optional<T> getValue(String annotation, Class<T> requiredType)
AnnotationMetadatagetValue in interface AnnotationMetadataT - The valueannotation - The annotation classrequiredType - The required typeOptional of the valuedefault Optional<Object> getValue(String annotation, String member)
AnnotationMetadatagetValue in interface AnnotationMetadataannotation - The annotation classmember - The annotation memberOptional of the valuedefault Optional<Object> getValue(Class<? extends Annotation> annotation, String member)
AnnotationMetadatagetValue in interface AnnotationMetadataannotation - The annotation classmember - The annotation memberOptional of the valuedefault boolean isTrue(String annotation, String member)
AnnotationMetadataisTrue in interface AnnotationMetadataannotation - The annotation classmember - The annotation memberdefault boolean isTrue(Class<? extends Annotation> annotation, String member)
AnnotationMetadataisTrue in interface AnnotationMetadataannotation - The annotation classmember - The annotation memberdefault boolean isPresent(String annotation, String member)
AnnotationMetadataisPresent in interface AnnotationMetadataannotation - The annotation classmember - The annotation memberdefault boolean isPresent(Class<? extends Annotation> annotation, String member)
AnnotationMetadataisPresent in interface AnnotationMetadataannotation - The annotation classmember - The annotation memberdefault boolean isFalse(Class<? extends Annotation> annotation, String member)
AnnotationMetadataisFalse in interface AnnotationMetadataannotation - The annotation classmember - The annotation memberdefault boolean isFalse(String annotation, String member)
AnnotationMetadataisFalse in interface AnnotationMetadataannotation - The annotation classmember - The annotation memberdefault Optional<Object> getValue(String annotation)
AnnotationMetadatagetValue in interface AnnotationMetadataannotation - The annotation classOptional of the valuedefault Optional<Object> getValue(Class<? extends Annotation> annotation)
AnnotationMetadatagetValue in interface AnnotationMetadataannotation - The annotation classOptional of the valuedefault <T> Optional<T> getValue(Class<? extends Annotation> annotation, Class<T> requiredType)
AnnotationMetadatagetValue in interface AnnotationMetadataT - Generic typeannotation - The annotation classrequiredType - requiredTypeOptional of the valuedefault Optional<Class<? extends Annotation>> getAnnotationType(String name)
AnnotationMetadatagetAnnotationType in interface AnnotationMetadataname - The type namedefault boolean hasAnnotation(@Nullable Class<? extends Annotation> annotation)
AnnotationMetadatahasAnnotation in interface AnnotationMetadataannotation - The annotationdefault boolean hasStereotype(@Nullable Class<? extends Annotation> annotation)
AnnotationMetadataChecks whether this object has the given annotation stereotype on the object itself or inherited from a parent
.
An annotation stereotype is a meta annotation potentially applied to another annotation
hasStereotype in interface AnnotationMetadataannotation - The annotationdefault boolean hasStereotype(Class<? extends Annotation>... annotations)
AnnotationMetadatahasStereotype in interface AnnotationMetadataannotations - The annotationsdefault boolean hasStereotype(String[] annotations)
AnnotationMetadatahasStereotype in interface AnnotationMetadataannotations - The annotationsdefault boolean hasDeclaredAnnotation(@Nullable Class<? extends Annotation> annotation)
AnnotationMetadatahasDeclaredAnnotation in interface AnnotationMetadataannotation - The annotationdefault boolean hasDeclaredStereotype(@Nullable Class<? extends Annotation> stereotype)
AnnotationMetadatahasDeclaredStereotype in interface AnnotationMetadatastereotype - The annotationdefault boolean hasDeclaredStereotype(Class<? extends Annotation>... annotations)
AnnotationMetadatahasDeclaredStereotype in interface AnnotationMetadataannotations - The annotationsdefault boolean isEmpty()
AnnotationMetadataisEmpty in interface AnnotationMetadatadefault boolean hasDeclaredAnnotation(String annotation)
AnnotationMetadatahasDeclaredAnnotation in interface AnnotationMetadataannotation - The annotationdefault Set<String> getAnnotationNames()
AnnotationMetadatagetAnnotationNames in interface AnnotationMetadatadefault Set<String> getDeclaredAnnotationNames()
AnnotationMetadatagetDeclaredAnnotationNames in interface AnnotationMetadatadefault boolean hasAnnotation(String annotation)
AnnotationMetadatahasAnnotation in interface AnnotationMetadataannotation - The annotationdefault boolean hasStereotype(String annotation)
AnnotationMetadataChecks whether this object has the given annotation stereotype on the object itself or inherited from a parent
.
An annotation stereotype is a meta annotation potentially applied to another annotation
hasStereotype in interface AnnotationMetadataannotation - The annotationdefault boolean hasDeclaredStereotype(String annotation)
AnnotationMetadataChecks whether this object has the given annotation stereotype on the object itself and not inherited from a parent
.
An annotation stereotype is a meta annotation potentially applied to another annotation
hasDeclaredStereotype in interface AnnotationMetadataannotation - The annotationdefault List<String> getAnnotationNamesByStereotype(String stereotype)
AnnotationMetadatagetAnnotationNamesByStereotype in interface AnnotationMetadatastereotype - The annotation namesdefault List<String> getDeclaredAnnotationNamesByStereotype(String stereotype)
AnnotationMetadatagetDeclaredAnnotationNamesByStereotype in interface AnnotationMetadatastereotype - The stereotypedefault <T extends Annotation> Optional<AnnotationValue<T>> findAnnotation(String annotation)
AnnotationSourceAnnotationValue for the given annotation name.findAnnotation in interface AnnotationMetadataProviderfindAnnotation in interface AnnotationSourceT - The annotation typeannotation - The annotation nameAnnotationValue instancedefault <T> OptionalValues<T> getValues(String annotation, Class<T> valueType)
AnnotationMetadatagetValues in interface AnnotationMetadataT - Generic typeannotation - The annotation namevalueType - valueTypeOptionalValuesdefault <T extends Annotation> Optional<AnnotationValue<T>> findDeclaredAnnotation(String annotation)
AnnotationSourcefindDeclaredAnnotation in interface AnnotationMetadataProviderfindDeclaredAnnotation in interface AnnotationSourceT - The annotation typeannotation - The annotation nameAnnotationValue instancedefault <T> Optional<T> getDefaultValue(String annotation, String member, Class<T> requiredType)
AnnotationMetadatagetDefaultValue in interface AnnotationMetadataT - The required generic typeannotation - The annotationmember - The memberrequiredType - The required typedefault <T extends Annotation> T synthesize(Class<T> annotationClass)
AnnotationSourcesynthesize in interface AnnotationMetadataProvidersynthesize in interface AnnotationSourceT - The annotation generic typeannotationClass - The annotation classdefault Annotation[] synthesizeAll()
AnnotationSourcesynthesizeAll in interface AnnotationMetadataProvidersynthesizeAll in interface AnnotationSourcedefault Annotation[] synthesizeDeclared()
AnnotationSourcesynthesizeDeclared in interface AnnotationMetadataProvidersynthesizeDeclared in interface AnnotationSourcedefault <T extends Annotation> List<AnnotationValue<T>> getAnnotationValuesByType(Class<T> annotationType)
AnnotationMetadatagetAnnotationValuesByType in interface AnnotationMetadataT - The annotation typeannotationType - The annotation typedefault <T extends Annotation> List<AnnotationValue<T>> getDeclaredAnnotationValuesByType(Class<T> annotationType)
AnnotationMetadatagetDeclaredAnnotationValuesByType in interface AnnotationMetadataT - The annotation typeannotationType - The annotation type