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<Boolean> |
booleanValue(Class<? extends Annotation> annotation)
The value as an optional boolean for the given annotation and member.
|
default Optional<Boolean> |
booleanValue(Class<? extends Annotation> annotation,
String member)
The value as an optional boolean for the given annotation and member.
|
default Optional<Boolean> |
booleanValue(String annotation)
The value as an optional boolean for the given annotation and member.
|
default Optional<Boolean> |
booleanValue(String annotation,
String member)
The value as an optional boolean for the given annotation and member.
|
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 <T> Class<T>[] |
classValues(Class<? extends Annotation> annotation)
The value of the annotation as a Class.
|
default <T> Class<T>[] |
classValues(Class<? extends Annotation> annotation,
String member)
The value of the annotation as a Class.
|
default <T> Class<T>[] |
classValues(String annotation)
The value of the annotation as a Class.
|
default <T> Class<T>[] |
classValues(String annotation,
String member)
The value of the annotation as a Class.
|
default OptionalDouble |
doubleValue(Class<? extends Annotation> annotation)
The value as an
OptionalDouble for the given annotation and member. |
default OptionalDouble |
doubleValue(Class<? extends Annotation> annotation,
String member)
The value as an
OptionalDouble for the given annotation and member. |
default OptionalDouble |
doubleValue(String annotation,
String member)
The value as an
OptionalDouble for the given annotation and member. |
default <E extends Enum> |
enumValue(Class<? extends Annotation> annotation,
Class<E> enumType)
The value of the annotation as a Class.
|
default <E extends Enum> |
enumValue(Class<? extends Annotation> annotation,
String member,
Class<E> enumType)
The value of the annotation as a Class.
|
default <E extends Enum> |
enumValue(String annotation,
Class<E> enumType)
The value of the given enum.
|
default <E extends Enum> |
enumValue(String annotation,
String member,
Class<E> enumType)
The value of the annotation as a Class.
|
default <E extends Enum> |
enumValues(Class<? extends Annotation> annotation,
Class<E> enumType)
The enum values for the given annotation.
|
default <E extends Enum> |
enumValues(Class<? extends Annotation> annotation,
String member,
Class<E> enumType)
The enum values for the given annotation.
|
default <E extends Enum> |
enumValues(String annotation,
Class<E> enumType)
The enum values for the given annotation.
|
default <E extends Enum> |
enumValues(String annotation,
String member,
Class<E> enumType)
The enum values for the given annotation.
|
default <T extends Annotation> |
findAnnotation(Class<T> annotationClass)
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> annotationClass)
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 Optional<String> |
findRepeatableAnnotation(Class<? extends Annotation> annotation)
Find repeatable annotation container.
|
default Optional<String> |
findRepeatableAnnotation(String annotation)
Find repeatable annotation container.
|
default <T extends Annotation> |
getAnnotation(Class<T> annotationClass)
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>> |
getAnnotationType(String name,
ClassLoader classLoader)
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 List<Class<? extends Annotation>> |
getAnnotationTypesByStereotype(Class<? extends Annotation> stereotype,
ClassLoader classLoader)
Resolve all of the annotation names that feature the given stereotype.
|
default List<Class<? extends Annotation>> |
getAnnotationTypesByStereotype(String 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> annotationClass)
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 AnnotationMetadata |
getDeclaredMetadata()
Gets the declared metadata without inherited metdata.
|
default Set<String> |
getDeclaredStereotypeAnnotationNames()
Returns the names of the annotations which are declared stereotypes.
|
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 Map<String,Object> |
getDefaultValues(String annotation)
Return the default values for the given annotation name.
|
default Set<String> |
getStereotypeAnnotationNames()
Returns the names of the annotations which are stereotypes.
|
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 |
hasPropertyExpressions()
Does the metadata contain any property expressions like
${foo.bar}. |
default boolean |
hasSimpleAnnotation(String annotation)
Checks whether the given annotation simple name (name without the package) is present in the annotations.
|
default boolean |
hasSimpleDeclaredAnnotation(String annotation)
Checks whether the given annotation simple name (name without the package) is present in the declared annotations.
|
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(Class<? extends Annotation> annotation)
The value as an
OptionalInt for the given annotation and member. |
default OptionalInt |
intValue(Class<? extends Annotation> annotation,
String member)
The value as an
OptionalInt for the given annotation and member. |
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 present.
|
default boolean |
isPresent(String annotation,
String member)
Returns whether the value of the given member is present.
|
default boolean |
isRepeatableAnnotation(Class<? extends Annotation> annotation)
Is repeatable annotation?
|
default boolean |
isRepeatableAnnotation(String annotation)
Is repeatable annotation?
|
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(Class<? extends Annotation> annotation,
String member)
The value as an
OptionalLong for the given annotation and member. |
default OptionalLong |
longValue(String annotation,
String member)
The value as an
OptionalLong for the given annotation and member. |
default Optional<String> |
stringValue(Class<? extends Annotation> annotation)
The value as an optional string for the given annotation and member.
|
default Optional<String> |
stringValue(Class<? extends Annotation> annotation,
String member)
The value as an optional string for the given annotation and member.
|
default Optional<String> |
stringValue(String annotation)
The value as an optional string for the given annotation and member.
|
default Optional<String> |
stringValue(String annotation,
String member)
The value as an optional string for the given annotation and member.
|
default String[] |
stringValues(Class<? extends Annotation> annotation)
The values as string array for the given annotation and member.
|
default String[] |
stringValues(Class<? extends Annotation> annotation,
String member)
The values as string array for the given annotation and member.
|
default String[] |
stringValues(String annotation)
The values as string array for the given annotation and member.
|
default String[] |
stringValues(String annotation,
String member)
The values as string array 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 <T extends Annotation> |
synthesize(Class<T> annotationClass,
String sourceAnnotation)
Synthesizes a new annotation for the given annotation type using the member values of the given source annotation.
|
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> |
synthesizeDeclared(Class<T> annotationClass,
String sourceAnnotation)
Synthesizes a new annotation declared for the given annotation type using the member values of the given source annotation.
|
default <T extends Annotation> |
synthesizeDeclaredAnnotationsByType(Class<T> annotationClass)
Synthesizes a new annotations from the metadata for the given type.
|
getAnnotationMetadatagetAnnotationValuesByName, getDeclaredAnnotationValuesByName, getValues, hasDeclaredStereotype, isAnnotationPresent, isDeclaredAnnotationPresentdefault Set<String> getStereotypeAnnotationNames()
AnnotationMetadataA stereotype is a meta-annotation (an annotation declared on another annotation).
getStereotypeAnnotationNames in interface AnnotationMetadataAnnotationMetadata.getDeclaredStereotypeAnnotationNames()default Set<String> getDeclaredStereotypeAnnotationNames()
AnnotationMetadataA stereotype is a meta-annotation (an annotation declared on another annotation).
A stereotype is considered declared when it it is a meta-annotation that is present on an annotation directly declared on the element and not inherited from a super class.
getDeclaredStereotypeAnnotationNames in interface AnnotationMetadataAnnotationMetadata.getStereotypeAnnotationNames(),
AnnotationMetadata.getDeclaredAnnotationNames()@NonNull default AnnotationMetadata getDeclaredMetadata()
AnnotationMetadatagetDeclaredMetadata in interface AnnotationMetadatadefault boolean hasSimpleAnnotation(@Nullable String annotation)
AnnotationMetadatahasSimpleAnnotation in interface AnnotationMetadataannotation - The annotationdefault boolean hasPropertyExpressions()
AnnotationMetadata${foo.bar}. Note
this by default returns true as previous versions of Micronaut must assume metadata
is present. The compilation time this is computed in order to decide whether to instrument
annotation metadata with environment specific logic.hasPropertyExpressions in interface AnnotationMetadatadefault boolean hasSimpleDeclaredAnnotation(@Nullable String annotation)
AnnotationMetadatahasSimpleDeclaredAnnotation in interface AnnotationMetadataannotation - The annotationdefault <E extends Enum> E[] enumValues(@NonNull String annotation, Class<E> enumType)
AnnotationMetadataenumValues in interface AnnotationMetadataE - The enum typeannotation - The annotationenumType - The enum typedefault <E extends Enum> E[] enumValues(@NonNull String annotation, @NonNull String member, Class<E> enumType)
AnnotationMetadataenumValues in interface AnnotationMetadataE - The enum typeannotation - The annotationmember - The annotation memberenumType - The enum typedefault <E extends Enum> E[] enumValues(@NonNull Class<? extends Annotation> annotation, Class<E> enumType)
AnnotationMetadataenumValues in interface AnnotationMetadataE - The enum typeannotation - The annotationenumType - The enum typedefault <E extends Enum> E[] enumValues(@NonNull Class<? extends Annotation> annotation, @NonNull String member, Class<E> enumType)
AnnotationMetadataenumValues in interface AnnotationMetadataE - The enum typeannotation - The annotationmember - The annotation memberenumType - The enum typedefault <T> Class<T>[] classValues(@NonNull String annotation)
AnnotationMetadataclassValues in interface AnnotationMetadataT - The type of the classannotation - The annotationOptional classdefault <T> Class<T>[] classValues(@NonNull String annotation, @NonNull String member)
AnnotationMetadataclassValues in interface AnnotationMetadataT - The type of the classannotation - The annotationmember - The annotation memberOptional classdefault <T> Class<T>[] classValues(@NonNull Class<? extends Annotation> annotation)
AnnotationMetadataclassValues in interface AnnotationMetadataT - The type of the classannotation - The annotationOptional classdefault <T> Class<T>[] classValues(@NonNull Class<? extends Annotation> annotation, @NonNull String member)
AnnotationMetadataclassValues in interface AnnotationMetadataT - The type of the classannotation - The annotationmember - The annotation memberOptional classdefault <E extends Enum> Optional<E> enumValue(@NonNull String annotation, Class<E> enumType)
AnnotationMetadataenumValue in interface AnnotationMetadataE - The enum typeannotation - The annotationenumType - The enum typeOptional enum valuedefault <E extends Enum> Optional<E> enumValue(@NonNull String annotation, @NonNull String member, Class<E> enumType)
AnnotationMetadataenumValue in interface AnnotationMetadataE - The enum typeannotation - The annotationmember - The annotation memberenumType - The enum typeOptional classdefault <E extends Enum> Optional<E> enumValue(@NonNull Class<? extends Annotation> annotation, Class<E> enumType)
AnnotationMetadataenumValue in interface AnnotationMetadataE - The enum typeannotation - The annotationenumType - The enum typeOptional classdefault <E extends Enum> Optional<E> enumValue(@NonNull Class<? extends Annotation> annotation, @NonNull String member, Class<E> enumType)
AnnotationMetadataenumValue in interface AnnotationMetadataE - The enum typeannotation - The annotationmember - The annotation memberenumType - The enum typeOptional classdefault OptionalLong longValue(@NonNull Class<? extends Annotation> annotation, @NonNull String member)
AnnotationMetadataOptionalLong for the given annotation and member.longValue in interface AnnotationMetadataannotation - The annotationmember - The memberOptionalLong valuedefault Optional<Boolean> booleanValue(@NonNull String annotation, @NonNull String member)
AnnotationMetadatabooleanValue in interface AnnotationMetadataannotation - The annotationmember - The memberdefault Optional<Boolean> booleanValue(@NonNull Class<? extends Annotation> annotation, @NonNull String member)
AnnotationMetadatabooleanValue in interface AnnotationMetadataannotation - The annotationmember - The member@NonNull default Optional<Boolean> booleanValue(@NonNull Class<? extends Annotation> annotation)
AnnotationMetadatabooleanValue in interface AnnotationMetadataannotation - The annotation@NonNull default Optional<Boolean> booleanValue(@NonNull String annotation)
AnnotationMetadatabooleanValue in interface AnnotationMetadataannotation - The annotation@NonNull default String[] stringValues(@NonNull Class<? extends Annotation> annotation, @NonNull String member)
AnnotationMetadatastringValues in interface AnnotationMetadataannotation - The annotationmember - The member@NonNull default String[] stringValues(@NonNull Class<? extends Annotation> annotation)
AnnotationMetadatastringValues in interface AnnotationMetadataannotation - The annotation@NonNull default String[] stringValues(@NonNull String annotation, @NonNull String member)
AnnotationMetadatastringValues in interface AnnotationMetadataannotation - The annotationmember - The member@NonNull default String[] stringValues(@NonNull String annotation)
AnnotationMetadatastringValues in interface AnnotationMetadataannotation - The annotation@NonNull default OptionalInt intValue(@NonNull Class<? extends Annotation> annotation, @NonNull String member)
AnnotationMetadataOptionalInt for the given annotation and member.intValue in interface AnnotationMetadataannotation - The annotationmember - The memberOptionalInt value@NonNull default OptionalInt intValue(@NonNull Class<? extends Annotation> annotation)
AnnotationMetadataOptionalInt for the given annotation and member.intValue in interface AnnotationMetadataannotation - The annotationOptionalInt value@NonNull default Optional<String> stringValue(@NonNull String annotation, @NonNull String member)
AnnotationMetadatastringValue in interface AnnotationMetadataannotation - The annotationmember - The member@NonNull default Optional<String> stringValue(@NonNull Class<? extends Annotation> annotation, @NonNull String member)
AnnotationMetadatastringValue in interface AnnotationMetadataannotation - The annotationmember - The member@NonNull default Optional<String> stringValue(@NonNull Class<? extends Annotation> annotation)
AnnotationMetadatastringValue in interface AnnotationMetadataannotation - The annotation@NonNull default Optional<String> stringValue(@NonNull String annotation)
AnnotationMetadatastringValue in interface AnnotationMetadataannotation - The annotation@NonNull default OptionalDouble doubleValue(@NonNull Class<? extends Annotation> annotation, @NonNull String member)
AnnotationMetadataOptionalDouble for the given annotation and member.doubleValue in interface AnnotationMetadataannotation - The annotationmember - The memberOptionalDouble value@NonNull default OptionalDouble doubleValue(@NonNull Class<? extends Annotation> annotation)
AnnotationMetadataOptionalDouble for the given annotation and member.doubleValue in interface AnnotationMetadataannotation - The annotationOptionalDouble value@NonNull default Map<String,Object> getDefaultValues(@NonNull String annotation)
AnnotationMetadatagetDefaultValues in interface AnnotationMetadataannotation - The annotation name@NonNull default <T> Optional<T> getValue(@NonNull String annotation, @NonNull Argument<T> requiredType)
AnnotationMetadatagetValue in interface AnnotationMetadataT - Generic typeannotation - The annotation classrequiredType - requiredTypeOptional of the value@NonNull default <T> Optional<T> getValue(@NonNull Class<? extends Annotation> annotation, @NonNull Argument<T> requiredType)
AnnotationMetadatagetValue in interface AnnotationMetadataT - Generic typeannotation - The annotation classrequiredType - requiredTypeOptional of the value@NonNull default <T> Optional<T> getValue(@NonNull String annotation, @NonNull String member, @NonNull Argument<T> requiredType)
AnnotationMetadatagetValue in interface AnnotationMetadataT - The valueannotation - The annotation classmember - The annotation memberrequiredType - The required typeOptional of the value@NonNull default <T> Optional<T> getDefaultValue(@NonNull String annotation, @NonNull String member, @NonNull Argument<T> requiredType)
AnnotationMetadatagetDefaultValue in interface AnnotationMetadataT - The required generic typeannotation - The annotationmember - The memberrequiredType - The required type@NonNull default <T> Optional<T> getDefaultValue(@NonNull Class<? extends Annotation> annotation, @NonNull String member, @NonNull Argument<T> requiredType)
AnnotationMetadatagetDefaultValue in interface AnnotationMetadataT - The required generic typeannotation - The annotationmember - The memberrequiredType - The required type@NonNull default <T> Optional<T> getValue(@NonNull Class<? extends Annotation> annotation, @NonNull String member, @NonNull 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(@NonNull 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 class@NonNull default <T extends Annotation> T[] synthesizeAnnotationsByType(@NonNull Class<T> annotationClass)
AnnotationSourcesynthesizeAnnotationsByType in interface AnnotationMetadataProvidersynthesizeAnnotationsByType in interface AnnotationSourceT - The annotation generic typeannotationClass - The annotation type@NonNull default <T extends Annotation> T[] synthesizeDeclaredAnnotationsByType(@NonNull 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(@NonNull 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(@NonNull Class<T> annotationClass)
AnnotationSourceAnnotationValue for the given annotation name.getAnnotation in interface AnnotationSourceT - The annotation typeannotationClass - The annotation nameAnnotationValue instance or null@Nullable default <T extends Annotation> AnnotationValue<T> getDeclaredAnnotation(@NonNull String annotation)
AnnotationSourcegetDeclaredAnnotation in interface AnnotationSourceT - The annotation typeannotation - The annotation nameAnnotationValue instance@NonNull default <T extends Annotation> Optional<AnnotationValue<T>> findDeclaredAnnotation(@NonNull Class<T> annotationClass)
AnnotationSourcefindDeclaredAnnotation in interface AnnotationMetadatafindDeclaredAnnotation in interface AnnotationMetadataProviderfindDeclaredAnnotation in interface AnnotationSourceT - The annotation typeannotationClass - The annotation nameAnnotationValue instance@Nullable default <T extends Annotation> AnnotationValue<T> getDeclaredAnnotation(@NonNull Class<T> annotationClass)
AnnotationSourceAnnotationValue for the given annotation name.getDeclaredAnnotation in interface AnnotationSourceT - The annotation typeannotationClass - The annotation nameAnnotationValue instance or nulldefault boolean isAnnotationPresent(@NonNull Class<? extends Annotation> annotationClass)
AnnotationSourceisAnnotationPresent in interface AnnotationMetadataisAnnotationPresent in interface AnnotationMetadataProviderisAnnotationPresent in interface AnnotationSourceannotationClass - The annotation classAnnotationSource.isAnnotationPresent(Class)default boolean isDeclaredAnnotationPresent(@NonNull 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)@NonNull default <T> Optional<T> getDefaultValue(@NonNull Class<? extends Annotation> annotation, @NonNull String member, @NonNull Class<T> requiredType)
AnnotationMetadatagetDefaultValue in interface AnnotationMetadataT - The required generic typeannotation - The annotationmember - The memberrequiredType - The required type@NonNull default <T> Optional<T> getValue(@NonNull Class<? extends Annotation> annotation, @NonNull String member, @NonNull Class<T> requiredType)
AnnotationMetadatagetValue in interface AnnotationMetadataT - The valueannotation - The annotation classmember - The annotation memberrequiredType - The required typeOptional of the value@NonNull default Optional<String> getAnnotationNameByStereotype(String stereotype)
AnnotationMetadatagetAnnotationNameByStereotype in interface AnnotationMetadatastereotype - The stereotype@NonNull default Optional<String> getDeclaredAnnotationNameByStereotype(String stereotype)
AnnotationMetadatagetDeclaredAnnotationNameByStereotype in interface AnnotationMetadatastereotype - The stereotype@NonNull default Optional<Class<? extends Annotation>> getAnnotationTypeByStereotype(@NonNull Class<? extends Annotation> stereotype)
AnnotationMetadatagetAnnotationTypeByStereotype in interface AnnotationMetadatastereotype - The stereotype@NonNull default Optional<Class<? extends Annotation>> getDeclaredAnnotationTypeByStereotype(@NonNull Class<? extends Annotation> stereotype)
AnnotationMetadatagetDeclaredAnnotationTypeByStereotype in interface AnnotationMetadatastereotype - The stereotype@NonNull default Optional<Class<? extends Annotation>> getDeclaredAnnotationTypeByStereotype(String stereotype)
AnnotationMetadatagetDeclaredAnnotationTypeByStereotype in interface AnnotationMetadatastereotype - The stereotype@NonNull default Optional<Class<? extends Annotation>> getAnnotationTypeByStereotype(String stereotype)
AnnotationMetadatagetAnnotationTypeByStereotype in interface AnnotationMetadatastereotype - The stereotype@NonNull default Optional<String> getAnnotationNameByStereotype(@NonNull Class<? extends Annotation> stereotype)
AnnotationMetadatagetAnnotationNameByStereotype in interface AnnotationMetadatastereotype - The stereotype@NonNull default <T> OptionalValues<T> getValues(@NonNull Class<? extends Annotation> annotation, @NonNull Class<T> valueType)
AnnotationMetadatagetValues in interface AnnotationMetadataT - Generic typeannotation - The annotation namevalueType - valueTypeOptionalValues@NonNull default List<String> getAnnotationNamesByStereotype(@NonNull Class<? extends Annotation> stereotype)
AnnotationMetadatagetAnnotationNamesByStereotype in interface AnnotationMetadatastereotype - The annotation names@NonNull default List<Class<? extends Annotation>> getAnnotationTypesByStereotype(@NonNull Class<? extends Annotation> stereotype)
AnnotationMetadatagetAnnotationTypesByStereotype in interface AnnotationMetadatastereotype - The annotation names@NonNull default List<Class<? extends Annotation>> getAnnotationTypesByStereotype(@NonNull String stereotype)
AnnotationMetadatagetAnnotationTypesByStereotype in interface AnnotationMetadatastereotype - The annotation names@NonNull default List<Class<? extends Annotation>> getAnnotationTypesByStereotype(@NonNull Class<? extends Annotation> stereotype, @NonNull ClassLoader classLoader)
AnnotationMetadatagetAnnotationTypesByStereotype in interface AnnotationMetadatastereotype - The annotation namesclassLoader - The classloader to load annotation type@NonNull default <T extends Annotation> Optional<AnnotationValue<T>> findAnnotation(@NonNull Class<T> annotationClass)
AnnotationSourceAnnotationValue for the given annotation type.findAnnotation in interface AnnotationMetadatafindAnnotation in interface AnnotationMetadataProviderfindAnnotation in interface AnnotationSourceT - The annotation typeannotationClass - The annotationAnnotationValue instance@NonNull default <T> Optional<T> getValue(@NonNull String annotation, @NonNull String member, @NonNull Class<T> requiredType)
AnnotationMetadatagetValue in interface AnnotationMetadataT - The valueannotation - The annotation classmember - The annotation memberrequiredType - The required typeOptional of the value@NonNull default OptionalLong longValue(@NonNull String annotation, @NonNull String member)
AnnotationMetadataOptionalLong for the given annotation and member.longValue in interface AnnotationMetadataannotation - The annotationmember - The memberOptionalLong value@NonNull default Optional<Class> classValue(@NonNull String annotation)
AnnotationMetadataclassValue in interface AnnotationMetadataannotation - The annotationOptional class@NonNull default Optional<Class> classValue(@NonNull String annotation, @NonNull String member)
AnnotationMetadataclassValue in interface AnnotationMetadataannotation - The annotationmember - The annotation memberOptional class@NonNull default Optional<Class> classValue(@NonNull Class<? extends Annotation> annotation)
AnnotationMetadataclassValue in interface AnnotationMetadataannotation - The annotationOptional class@NonNull default Optional<Class> classValue(@NonNull Class<? extends Annotation> annotation, @NonNull String member)
AnnotationMetadataclassValue in interface AnnotationMetadataannotation - The annotationmember - The annotation memberOptional class@NonNull default OptionalInt intValue(@NonNull String annotation, @NonNull String member)
AnnotationMetadataOptionalInt for the given annotation and member.intValue in interface AnnotationMetadataannotation - The annotationmember - The memberOptionalInt value@NonNull default OptionalDouble doubleValue(@NonNull String annotation, @NonNull String member)
AnnotationMetadataOptionalDouble for the given annotation and member.doubleValue in interface AnnotationMetadataannotation - The annotationmember - The memberOptionalDouble value@NonNull default <T> Optional<T> getValue(@NonNull String annotation, @NonNull Class<T> requiredType)
AnnotationMetadatagetValue in interface AnnotationMetadataT - The valueannotation - The annotation classrequiredType - The required typeOptional of the value@NonNull default Optional<Object> getValue(@NonNull String annotation, @NonNull String member)
AnnotationMetadatagetValue in interface AnnotationMetadataannotation - The annotation classmember - The annotation memberOptional of the value@NonNull default Optional<Object> getValue(@NonNull Class<? extends Annotation> annotation, @NonNull String member)
AnnotationMetadatagetValue in interface AnnotationMetadataannotation - The annotation classmember - The annotation memberOptional of the valuedefault boolean isTrue(@NonNull String annotation, @NonNull String member)
AnnotationMetadataisTrue in interface AnnotationMetadataannotation - The annotation classmember - The annotation memberdefault boolean isTrue(@NonNull Class<? extends Annotation> annotation, @NonNull String member)
AnnotationMetadataisTrue in interface AnnotationMetadataannotation - The annotation classmember - The annotation memberdefault boolean isPresent(@NonNull String annotation, @NonNull String member)
AnnotationMetadataisPresent in interface AnnotationMetadataannotation - The annotation classmember - The annotation memberdefault boolean isPresent(@NonNull Class<? extends Annotation> annotation, @NonNull String member)
AnnotationMetadataisPresent in interface AnnotationMetadataannotation - The annotation classmember - The annotation memberdefault boolean isFalse(@NonNull Class<? extends Annotation> annotation, @NonNull String member)
AnnotationMetadataisFalse in interface AnnotationMetadataannotation - The annotation classmember - The annotation memberdefault boolean isFalse(@NonNull String annotation, @NonNull String member)
AnnotationMetadataisFalse in interface AnnotationMetadataannotation - The annotation classmember - The annotation member@NonNull default Optional<Object> getValue(@NonNull String annotation)
AnnotationMetadatagetValue in interface AnnotationMetadataannotation - The annotation classOptional of the value@NonNull default Optional<Object> getValue(@NonNull Class<? extends Annotation> annotation)
AnnotationMetadatagetValue in interface AnnotationMetadataannotation - The annotation classOptional of the value@NonNull default <T> Optional<T> getValue(@NonNull Class<? extends Annotation> annotation, @NonNull Class<T> requiredType)
AnnotationMetadatagetValue in interface AnnotationMetadataT - Generic typeannotation - The annotation classrequiredType - requiredTypeOptional of the value@NonNull default Optional<Class<? extends Annotation>> getAnnotationType(@NonNull String name)
AnnotationMetadatagetAnnotationType in interface AnnotationMetadataname - The type name@NonNull default Optional<Class<? extends Annotation>> getAnnotationType(@NonNull String name, @NonNull ClassLoader classLoader)
AnnotationMetadatagetAnnotationType in interface AnnotationMetadataname - The type nameclassLoader - The ClassLoader to load the typedefault 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 annotation@NonNull default Set<String> getAnnotationNames()
AnnotationMetadatagetAnnotationNames in interface AnnotationMetadata@NonNull default 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 annotation@NonNull default List<String> getAnnotationNamesByStereotype(String stereotype)
AnnotationMetadatagetAnnotationNamesByStereotype in interface AnnotationMetadatastereotype - The annotation names@NonNull default List<String> getDeclaredAnnotationNamesByStereotype(String stereotype)
AnnotationMetadatagetDeclaredAnnotationNamesByStereotype in interface AnnotationMetadatastereotype - The stereotype@NonNull default <T extends Annotation> Optional<AnnotationValue<T>> findAnnotation(@NonNull String annotation)
AnnotationSourceAnnotationValue for the given annotation name.findAnnotation in interface AnnotationMetadataProviderfindAnnotation in interface AnnotationSourceT - The annotation typeannotation - The annotation nameAnnotationValue instance@NonNull default <T> OptionalValues<T> getValues(@NonNull String annotation, @NonNull Class<T> valueType)
AnnotationMetadatagetValues in interface AnnotationMetadataT - Generic typeannotation - The annotation namevalueType - valueTypeOptionalValues@NonNull default <T extends Annotation> Optional<AnnotationValue<T>> findDeclaredAnnotation(@NonNull String annotation)
AnnotationSourcefindDeclaredAnnotation in interface AnnotationMetadataProviderfindDeclaredAnnotation in interface AnnotationSourceT - The annotation typeannotation - The annotation nameAnnotationValue instance@NonNull default <T> Optional<T> getDefaultValue(@NonNull String annotation, @NonNull String member, @NonNull Class<T> requiredType)
AnnotationMetadatagetDefaultValue in interface AnnotationMetadataT - The required generic typeannotation - The annotationmember - The memberrequiredType - The required type@Nullable default <T extends Annotation> T synthesize(@NonNull Class<T> annotationClass)
AnnotationSourcesynthesize in interface AnnotationMetadataProvidersynthesize in interface AnnotationSourceT - The annotation generic typeannotationClass - The annotation class@Nullable default <T extends Annotation> T synthesize(@NonNull Class<T> annotationClass, @NonNull String sourceAnnotation)
AnnotationSourceThis method allows supporting synthesizing annotations that have been renamed, for example a jakarta.inject.Named annotation an be synthesized from the metadata of the a javax.inject.Named annotation.
synthesize in interface AnnotationSourceT - The annotation generic typeannotationClass - The annotation classsourceAnnotation - The source annotation that provides the member values@Nullable default <T extends Annotation> T synthesizeDeclared(@NonNull Class<T> annotationClass, @NonNull String sourceAnnotation)
AnnotationSourceThis method allows supporting synthesizing annotations that have been renamed, for example a jakarta.inject.Named annotation an be synthesized from the metadata of the a javax.inject.Named annotation.
synthesizeDeclared in interface AnnotationSourceT - The annotation generic typeannotationClass - The annotation classsourceAnnotation - The source annotation that provides the member values@NonNull default Annotation[] synthesizeAll()
AnnotationSourcesynthesizeAll in interface AnnotationMetadataProvidersynthesizeAll in interface AnnotationSource@NonNull default Annotation[] synthesizeDeclared()
AnnotationSourcesynthesizeDeclared in interface AnnotationMetadataProvidersynthesizeDeclared in interface AnnotationSource@NonNull default <T extends Annotation> List<AnnotationValue<T>> getAnnotationValuesByType(@NonNull Class<T> annotationType)
AnnotationMetadatagetAnnotationValuesByType in interface AnnotationMetadataT - The annotation typeannotationType - The annotation type@NonNull default <T extends Annotation> List<AnnotationValue<T>> getDeclaredAnnotationValuesByType(@NonNull Class<T> annotationType)
AnnotationMetadatagetDeclaredAnnotationValuesByType in interface AnnotationMetadataT - The annotation typeannotationType - The annotation typedefault boolean isRepeatableAnnotation(Class<? extends Annotation> annotation)
AnnotationMetadataisRepeatableAnnotation in interface AnnotationMetadataannotation - The annotationdefault boolean isRepeatableAnnotation(String annotation)
AnnotationMetadataisRepeatableAnnotation in interface AnnotationMetadataannotation - The annotationdefault Optional<String> findRepeatableAnnotation(Class<? extends Annotation> annotation)
AnnotationMetadatafindRepeatableAnnotation in interface AnnotationMetadataannotation - The annotationdefault Optional<String> findRepeatableAnnotation(String annotation)
AnnotationMetadatafindRepeatableAnnotation in interface AnnotationMetadataannotation - The annotation