Package io.micronaut.inject.annotation
Class MappingAnnotationMetadataDelegate
java.lang.Object
io.micronaut.inject.annotation.MappingAnnotationMetadataDelegate
- All Implemented Interfaces:
AnnotationMetadata,AnnotationMetadataDelegate,AnnotationMetadataProvider,AnnotationSource
- Direct Known Subclasses:
EvaluatedAnnotationMetadata
public abstract sealed class MappingAnnotationMetadataDelegate
extends Object
implements AnnotationMetadataDelegate
permits EvaluatedAnnotationMetadata
Abstract annotation metadata delegate for cases when annotation
values need to be mapped before being returned.
- Since:
- 4.0.0
- Author:
- Sergey Gavrilov
-
Field Summary
Fields inherited from interface io.micronaut.core.annotation.AnnotationMetadata
CLASS_NAME_SUFFIX, EMPTY_METADATA, VALUE_MEMBERFields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanValue(Class<? extends Annotation> annotation) The value as an optional boolean for the given annotation and member.booleanValue(Class<? extends Annotation> annotation, String member) The value as an optional boolean for the given annotation and member.booleanValue(String annotation) The value as an optional boolean for the given annotation and member.booleanValue(String annotation, String member) The value as an optional boolean for the given annotation and member.classValue(Class<? extends Annotation> annotation) The value of the annotation as a Class.classValue(Class<? extends Annotation> annotation, String member) The value of the annotation as a Class.classValue(String annotation) The value of the annotation as a Class.classValue(String annotation, String member) The value of the annotation as a Class.<T> Class<T>[]classValues(Class<? extends Annotation> annotation) The value of the annotation as a Class.<T> Class<T>[]classValues(Class<? extends Annotation> annotation, String member) The value of the annotation as a Class.<T> Class<T>[]classValues(String annotation) The value of the annotation as a Class.<T> Class<T>[]classValues(String annotation, String member) The value of the annotation as a Class.doubleValue(Class<? extends Annotation> annotation) The value as anOptionalDoublefor the given annotation and member.doubleValue(Class<? extends Annotation> annotation, String member) The value as anOptionalDoublefor the given annotation and member.doubleValue(String annotation, String member) The value as anOptionalDoublefor the given annotation and member.enumValue(Class<? extends Annotation> annotation, Class<E> enumType) The value of the annotation as a Class.enumValue(Class<? extends Annotation> annotation, String member, Class<E> enumType) The value of the annotation as a Class.The value of the given enum.The value of the annotation as a Class.<E extends Enum<E>>
E[]enumValues(Class<? extends Annotation> annotation, Class<E> enumType) The enum values for the given annotation.<E extends Enum<E>>
E[]enumValues(Class<? extends Annotation> annotation, String member, Class<E> enumType) The enum values for the given annotation.<E extends Enum<E>>
E[]enumValues(String annotation, Class<E> enumType) The enum values for the given annotation.<E extends Enum<E>>
E[]enumValues(String annotation, String member, Class<E> enumType) The enum values for the given annotation.<T extends Annotation>
Optional<AnnotationValue<T>>findAnnotation(Class<T> annotationClass) Find anAnnotationValuefor the given annotation type.<T extends Annotation>
Optional<AnnotationValue<T>>findAnnotation(String annotation) Find anAnnotationValuefor the given annotation name.<T extends Annotation>
Optional<AnnotationValue<T>>findDeclaredAnnotation(Class<T> annotationClass) Get all values for the given annotation that are directly declared on the annotated element.<T extends Annotation>
Optional<AnnotationValue<T>>findDeclaredAnnotation(String annotation) Get all values for the given annotation that are directly declared on the annotated element.<T extends Annotation>
AnnotationValue<T>getAnnotation(Class<T> annotationClass) Find anAnnotationValuefor the given annotation name.<T extends Annotation>
AnnotationValue<T>getAnnotation(String annotation) Find anAnnotationValuefor the given annotation name.<T extends Annotation>
List<AnnotationValue<T>>getAnnotationValuesByName(String annotationType) Gets all the annotation values by the given repeatable type name.<T extends Annotation>
List<AnnotationValue<T>>getAnnotationValuesByStereotype(String stereotype) Resolve all annotation values that feature the given stereotype.<T extends Annotation>
List<AnnotationValue<T>>getAnnotationValuesByType(Class<T> annotationType) Gets all the annotation values by the given repeatable type.<T extends Annotation>
AnnotationValue<T>getDeclaredAnnotation(Class<T> annotationClass) Find anAnnotationValuefor the given annotation name.<T extends Annotation>
List<AnnotationValue<T>>getDeclaredAnnotationValuesByName(String annotationType) Gets only declared annotation values by the given repeatable type name.<T extends Annotation>
List<AnnotationValue<T>>getDeclaredAnnotationValuesByType(Class<T> annotationType) Gets only declared annotation values by the given repeatable type.getValue(Class<? extends Annotation> annotation) Get the value of default "value" the given annotation.<T> Optional<T>getValue(Class<? extends Annotation> annotation, Argument<T> requiredType) Get the value of default "value" the given annotation.<T> Optional<T>getValue(Class<? extends Annotation> annotation, Class<T> requiredType) Get the value of default "value" the given annotation.getValue(Class<? extends Annotation> annotation, String member) Get the value of the given annotation member.<T> Optional<T>getValue(Class<? extends Annotation> annotation, String member, Argument<T> requiredType) Get the value of the given annotation member.<T> Optional<T>getValue(Class<? extends Annotation> annotation, String member, Class<T> requiredType) Get the value of the given annotation member.Get the value of default "value" the given annotation.<T> Optional<T>Get the value of default "value" the given annotation.<T> Optional<T>Get the value of default "value" the given annotation.Get the value of the given annotation member.<T> Optional<T>Get the value of the given annotation member.<T> Optional<T>Get the value of the given annotation member.<T> OptionalValues<T>getValues(Class<? extends Annotation> annotation, Class<T> valueType) Get all values for the given annotation.Get all values for the given annotation and type of the underlying values.<T> OptionalValues<T>Get all values for the given annotation and type of the underlying values.intValue(Class<? extends Annotation> annotation) The value as anOptionalIntfor the given annotation and member.intValue(Class<? extends Annotation> annotation, String member) The value as anOptionalIntfor the given annotation and member.The value as anOptionalIntfor the given annotation and member.booleanisFalse(Class<? extends Annotation> annotation, String member) Returns whether the value of the given member is true.booleanReturns whether the value of the given member is true.booleanisTrue(Class<? extends Annotation> annotation, String member) Returns whether the value of the given member is true.booleanReturns whether the value of the given member is true.longValue(Class<? extends Annotation> annotation, String member) The value as anOptionalLongfor the given annotation and member.The value as anOptionalLongfor the given annotation and member.abstract <T extends Annotation>
AnnotationValue<T>stringValue(Class<? extends Annotation> annotation) The value as an optional string for the given annotation and member.stringValue(Class<? extends Annotation> annotation, String member) The value as an optional string for the given annotation and member.stringValue(String annotation) The value as an optional string for the given annotation and member.stringValue(String annotation, String member) The value as an optional string for the given annotation and member.String[]stringValues(Class<? extends Annotation> annotation) The values as string array for the given annotation and member.String[]stringValues(Class<? extends Annotation> annotation, String member) The values as string array for the given annotation and member.String[]stringValues(String annotation) The values as string array for the given annotation and member.String[]stringValues(String annotation, String member) The values as string array for the given annotation and member.<T extends Annotation>
Tsynthesize(Class<T> annotationClass) Synthesizes a new annotation from the metadata for the given annotation type.<T extends Annotation>
Tsynthesize(Class<T> annotationClass, String sourceAnnotation) Synthesizes a new annotation for the given annotation type using the member values of the given source annotation.<T extends Annotation>
T[]synthesizeAnnotationsByType(Class<T> annotationClass) Synthesizes a new annotations from the metadata for the given type.<T extends Annotation>
TsynthesizeDeclared(Class<T> annotationClass) Synthesizes a new annotation from the metadata for the given annotation type.<T extends Annotation>
TsynthesizeDeclared(Class<T> annotationClass, String sourceAnnotation) Synthesizes a new annotation declared for the given annotation type using the member values of the given source annotation.<T extends Annotation>
T[]synthesizeDeclaredAnnotationsByType(Class<T> annotationClass) Synthesizes a new annotations from the metadata for the given type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.annotation.AnnotationMetadata
enumValuesSet, enumValuesSet, hasDeclaredStereotype, hasEvaluatedExpressions, hasStereotypeNonRepeating, isAnnotationPresent, isDeclaredAnnotationPresentMethods inherited from interface io.micronaut.core.annotation.AnnotationMetadataDelegate
copyAnnotationMetadata, findRepeatableAnnotation, findRepeatableAnnotation, getAnnotationNameByStereotype, getAnnotationNameByStereotype, getAnnotationNames, getAnnotationNamesByStereotype, getAnnotationNamesByStereotype, getAnnotationType, getAnnotationType, getAnnotationTypeByStereotype, getAnnotationTypeByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getDeclaredAnnotation, getDeclaredAnnotationNameByStereotype, getDeclaredAnnotationNames, getDeclaredAnnotationNamesByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredMetadata, getDeclaredStereotypeAnnotationNames, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValues, getStereotypeAnnotationNames, getTargetAnnotationMetadata, hasAnnotation, hasAnnotation, hasDeclaredAnnotation, hasDeclaredAnnotation, hasDeclaredStereotype, hasDeclaredStereotype, hasDeclaredStereotype, hasPropertyExpressions, hasSimpleAnnotation, hasSimpleDeclaredAnnotation, hasStereotype, hasStereotype, hasStereotype, hasStereotype, isAnnotationPresent, isDeclaredAnnotationPresent, isEmpty, isPresent, isPresent, isRepeatableAnnotation, isRepeatableAnnotation, synthesizeAll, synthesizeDeclaredMethods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
getAnnotationMetadata
-
Constructor Details
-
MappingAnnotationMetadataDelegate
public MappingAnnotationMetadataDelegate()
-
-
Method Details
-
mapAnnotationValue
-
stringValue
Description copied from interface:AnnotationMetadataThe value as an optional string for the given annotation and member.- Specified by:
stringValuein interfaceAnnotationMetadata- Specified by:
stringValuein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotationmember- The member- Returns:
- The string value if it is present
-
stringValue
Description copied from interface:AnnotationMetadataThe value as an optional string for the given annotation and member.- Specified by:
stringValuein interfaceAnnotationMetadata- Specified by:
stringValuein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotationmember- The member- Returns:
- The string value if it is present
-
stringValue
Description copied from interface:AnnotationMetadataThe value as an optional string for the given annotation and member.- Specified by:
stringValuein interfaceAnnotationMetadata- Specified by:
stringValuein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotation- Returns:
- The string value if it is present
-
stringValue
Description copied from interface:AnnotationMetadataThe value as an optional string for the given annotation and member.- Specified by:
stringValuein interfaceAnnotationMetadata- Specified by:
stringValuein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotation- Returns:
- The string value if it is present
-
stringValues
Description copied from interface:AnnotationMetadataThe values as string array for the given annotation and member.- Specified by:
stringValuesin interfaceAnnotationMetadata- Specified by:
stringValuesin interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotationmember- The member- Returns:
- The string values if it is present
-
stringValues
Description copied from interface:AnnotationMetadataThe values as string array for the given annotation and member.- Specified by:
stringValuesin interfaceAnnotationMetadata- Specified by:
stringValuesin interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotationmember- The member- Returns:
- The string values if it is present
-
stringValues
Description copied from interface:AnnotationMetadataThe values as string array for the given annotation and member.- Specified by:
stringValuesin interfaceAnnotationMetadata- Specified by:
stringValuesin interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotation- Returns:
- The string values if it is present
-
stringValues
Description copied from interface:AnnotationMetadataThe values as string array for the given annotation and member.- Specified by:
stringValuesin interfaceAnnotationMetadata- Specified by:
stringValuesin interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotation- Returns:
- The string values if it is present
-
enumValue
Description copied from interface:AnnotationMetadataThe value of the given enum.- Specified by:
enumValuein interfaceAnnotationMetadata- Specified by:
enumValuein interfaceAnnotationMetadataDelegate- Type Parameters:
E- The enum type- Parameters:
annotation- The annotationenumType- The enum type- Returns:
- An
Optionalenum value
-
enumValue
public <E extends Enum<E>> Optional<E> enumValue(String annotation, String member, Class<E> enumType) Description copied from interface:AnnotationMetadataThe value of the annotation as a Class.- Specified by:
enumValuein interfaceAnnotationMetadata- Specified by:
enumValuein interfaceAnnotationMetadataDelegate- Type Parameters:
E- The enum type- Parameters:
annotation- The annotationmember- The annotation memberenumType- The enum type- Returns:
- An
Optionalclass
-
enumValue
public <E extends Enum<E>> Optional<E> enumValue(Class<? extends Annotation> annotation, Class<E> enumType) Description copied from interface:AnnotationMetadataThe value of the annotation as a Class.- Specified by:
enumValuein interfaceAnnotationMetadata- Specified by:
enumValuein interfaceAnnotationMetadataDelegate- Type Parameters:
E- The enum type- Parameters:
annotation- The annotationenumType- The enum type- Returns:
- An
Optionalclass
-
enumValue
public <E extends Enum<E>> Optional<E> enumValue(Class<? extends Annotation> annotation, String member, Class<E> enumType) Description copied from interface:AnnotationMetadataThe value of the annotation as a Class.- Specified by:
enumValuein interfaceAnnotationMetadata- Specified by:
enumValuein interfaceAnnotationMetadataDelegate- Type Parameters:
E- The enum type- Parameters:
annotation- The annotationmember- The annotation memberenumType- The enum type- Returns:
- An
Optionalclass
-
enumValues
Description copied from interface:AnnotationMetadataThe enum values for the given annotation.- Specified by:
enumValuesin interfaceAnnotationMetadata- Specified by:
enumValuesin interfaceAnnotationMetadataDelegate- Type Parameters:
E- The enum type- Parameters:
annotation- The annotationmember- The annotation memberenumType- The enum type- Returns:
- An array of enum values
-
enumValues
Description copied from interface:AnnotationMetadataThe enum values for the given annotation.- Specified by:
enumValuesin interfaceAnnotationMetadata- Specified by:
enumValuesin interfaceAnnotationMetadataDelegate- Type Parameters:
E- The enum type- Parameters:
annotation- The annotationenumType- The enum type- Returns:
- An array of enum values
-
enumValues
public <E extends Enum<E>> E[] enumValues(Class<? extends Annotation> annotation, Class<E> enumType) Description copied from interface:AnnotationMetadataThe enum values for the given annotation.- Specified by:
enumValuesin interfaceAnnotationMetadata- Specified by:
enumValuesin interfaceAnnotationMetadataDelegate- Type Parameters:
E- The enum type- Parameters:
annotation- The annotationenumType- The enum type- Returns:
- An array of enum values
-
enumValues
public <E extends Enum<E>> E[] enumValues(Class<? extends Annotation> annotation, String member, Class<E> enumType) Description copied from interface:AnnotationMetadataThe enum values for the given annotation.- Specified by:
enumValuesin interfaceAnnotationMetadata- Specified by:
enumValuesin interfaceAnnotationMetadataDelegate- Type Parameters:
E- The enum type- Parameters:
annotation- The annotationmember- The annotation memberenumType- The enum type- Returns:
- An array of enum values
-
classValues
Description copied from interface:AnnotationMetadataThe value of the annotation as a Class.- Specified by:
classValuesin interfaceAnnotationMetadata- Specified by:
classValuesin interfaceAnnotationMetadataDelegate- Type Parameters:
T- The type of the class- Parameters:
annotation- The annotationmember- The annotation member- Returns:
- An
Optionalclass
-
classValues
Description copied from interface:AnnotationMetadataThe value of the annotation as a Class.- Specified by:
classValuesin interfaceAnnotationMetadata- Specified by:
classValuesin interfaceAnnotationMetadataDelegate- Type Parameters:
T- The type of the class- Parameters:
annotation- The annotation- Returns:
- An
Optionalclass
-
classValues
Description copied from interface:AnnotationMetadataThe value of the annotation as a Class.- Specified by:
classValuesin interfaceAnnotationMetadata- Specified by:
classValuesin interfaceAnnotationMetadataDelegate- Type Parameters:
T- The type of the class- Parameters:
annotation- The annotation- Returns:
- An
Optionalclass
-
classValues
Description copied from interface:AnnotationMetadataThe value of the annotation as a Class.- Specified by:
classValuesin interfaceAnnotationMetadata- Specified by:
classValuesin interfaceAnnotationMetadataDelegate- Type Parameters:
T- The type of the class- Parameters:
annotation- The annotationmember- The annotation member- Returns:
- An
Optionalclass
-
booleanValue
Description copied from interface:AnnotationMetadataThe value as an optional boolean for the given annotation and member.- Specified by:
booleanValuein interfaceAnnotationMetadata- Specified by:
booleanValuein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotationmember- The member- Returns:
- The string value if it is present
-
booleanValue
Description copied from interface:AnnotationMetadataThe value as an optional boolean for the given annotation and member.- Specified by:
booleanValuein interfaceAnnotationMetadata- Specified by:
booleanValuein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotationmember- The member- Returns:
- The string value if it is present
-
booleanValue
Description copied from interface:AnnotationMetadataThe value as an optional boolean for the given annotation and member.- Specified by:
booleanValuein interfaceAnnotationMetadata- Specified by:
booleanValuein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotation- Returns:
- The string value if it is present
-
booleanValue
Description copied from interface:AnnotationMetadataThe value as an optional boolean for the given annotation and member.- Specified by:
booleanValuein interfaceAnnotationMetadata- Specified by:
booleanValuein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotation- Returns:
- The string value if it is present
-
isTrue
Description copied from interface:AnnotationMetadataReturns whether the value of the given member is true.- Specified by:
isTruein interfaceAnnotationMetadata- Specified by:
isTruein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotation classmember- The annotation member- Returns:
- True if the value is true
-
isTrue
Description copied from interface:AnnotationMetadataReturns whether the value of the given member is true.- Specified by:
isTruein interfaceAnnotationMetadata- Specified by:
isTruein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotation classmember- The annotation member- Returns:
- True if the value is true
-
isFalse
Description copied from interface:AnnotationMetadataReturns whether the value of the given member is true.- Specified by:
isFalsein interfaceAnnotationMetadata- Specified by:
isFalsein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotation classmember- The annotation member- Returns:
- True if the value is true
-
isFalse
Description copied from interface:AnnotationMetadataReturns whether the value of the given member is true.- Specified by:
isFalsein interfaceAnnotationMetadata- Specified by:
isFalsein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotation classmember- The annotation member- Returns:
- True if the value is true
-
classValue
Description copied from interface:AnnotationMetadataThe value of the annotation as a Class.- Specified by:
classValuein interfaceAnnotationMetadata- Specified by:
classValuein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotationmember- The annotation member- Returns:
- An
Optionalclass
-
classValue
Description copied from interface:AnnotationMetadataThe value of the annotation as a Class.- Specified by:
classValuein interfaceAnnotationMetadata- Specified by:
classValuein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotation- Returns:
- An
Optionalclass
-
classValue
Description copied from interface:AnnotationMetadataThe value of the annotation as a Class.- Specified by:
classValuein interfaceAnnotationMetadata- Specified by:
classValuein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotation- Returns:
- An
Optionalclass
-
classValue
Description copied from interface:AnnotationMetadataThe value of the annotation as a Class.- Specified by:
classValuein interfaceAnnotationMetadata- Specified by:
classValuein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotationmember- The annotation member- Returns:
- An
Optionalclass
-
intValue
Description copied from interface:AnnotationMetadataThe value as anOptionalIntfor the given annotation and member.- Specified by:
intValuein interfaceAnnotationMetadata- Specified by:
intValuein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotationmember- The member- Returns:
- THe
OptionalIntvalue
-
intValue
Description copied from interface:AnnotationMetadataThe value as anOptionalIntfor the given annotation and member.- Specified by:
intValuein interfaceAnnotationMetadata- Specified by:
intValuein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotationmember- The member- Returns:
- THe
OptionalIntvalue
-
intValue
Description copied from interface:AnnotationMetadataThe value as anOptionalIntfor the given annotation and member.- Specified by:
intValuein interfaceAnnotationMetadata- Specified by:
intValuein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotation- Returns:
- THe
OptionalIntvalue
-
longValue
Description copied from interface:AnnotationMetadataThe value as anOptionalLongfor the given annotation and member.- Specified by:
longValuein interfaceAnnotationMetadata- Specified by:
longValuein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotationmember- The member- Returns:
- THe
OptionalLongvalue
-
longValue
Description copied from interface:AnnotationMetadataThe value as anOptionalLongfor the given annotation and member.- Specified by:
longValuein interfaceAnnotationMetadata- Specified by:
longValuein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotationmember- The member- Returns:
- THe
OptionalLongvalue
-
doubleValue
Description copied from interface:AnnotationMetadataThe value as anOptionalDoublefor the given annotation and member.- Specified by:
doubleValuein interfaceAnnotationMetadata- Specified by:
doubleValuein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotationmember- The member- Returns:
- THe
OptionalDoublevalue
-
doubleValue
Description copied from interface:AnnotationMetadataThe value as anOptionalDoublefor the given annotation and member.- Specified by:
doubleValuein interfaceAnnotationMetadata- Specified by:
doubleValuein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotationmember- The member- Returns:
- THe
OptionalDoublevalue
-
doubleValue
Description copied from interface:AnnotationMetadataThe value as anOptionalDoublefor the given annotation and member.- Specified by:
doubleValuein interfaceAnnotationMetadata- Specified by:
doubleValuein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotation- Returns:
- THe
OptionalDoublevalue
-
getValue
Description copied from interface:AnnotationMetadataGet the value of the given annotation member.- Specified by:
getValuein interfaceAnnotationMetadata- Specified by:
getValuein interfaceAnnotationMetadataDelegate- Type Parameters:
T- The value- Parameters:
annotation- The annotation classmember- The annotation memberrequiredType- The required type- Returns:
- An
Optionalof the value
-
getValue
public <T> Optional<T> getValue(Class<? extends Annotation> annotation, String member, Argument<T> requiredType) Description copied from interface:AnnotationMetadataGet the value of the given annotation member.- Specified by:
getValuein interfaceAnnotationMetadata- Specified by:
getValuein interfaceAnnotationMetadataDelegate- Type Parameters:
T- The value- Parameters:
annotation- The annotation classmember- The annotation memberrequiredType- The required type- Returns:
- An
Optionalof the value
-
getValue
Description copied from interface:AnnotationMetadataGet the value of default "value" the given annotation.- Specified by:
getValuein interfaceAnnotationMetadata- Specified by:
getValuein interfaceAnnotationMetadataDelegate- Type Parameters:
T- Generic type- Parameters:
annotation- The annotation classrequiredType- requiredType- Returns:
- An
Optionalof the value
-
getValue
Description copied from interface:AnnotationMetadataGet the value of default "value" the given annotation.- Specified by:
getValuein interfaceAnnotationMetadata- Specified by:
getValuein interfaceAnnotationMetadataDelegate- Type Parameters:
T- Generic type- Parameters:
annotation- The annotation classrequiredType- requiredType- Returns:
- An
Optionalof the value
-
getValue
public <T> Optional<T> getValue(Class<? extends Annotation> annotation, String member, Class<T> requiredType) Description copied from interface:AnnotationMetadataGet the value of the given annotation member.- Specified by:
getValuein interfaceAnnotationMetadata- Specified by:
getValuein interfaceAnnotationMetadataDelegate- Type Parameters:
T- The value- Parameters:
annotation- The annotation classmember- The annotation memberrequiredType- The required type- Returns:
- An
Optionalof the value
-
getValue
Description copied from interface:AnnotationMetadataGet the value of default "value" the given annotation.- Specified by:
getValuein interfaceAnnotationMetadata- Specified by:
getValuein interfaceAnnotationMetadataDelegate- Type Parameters:
T- Generic type- Parameters:
annotation- The annotation classrequiredType- requiredType- Returns:
- An
Optionalof the value
-
getValue
Description copied from interface:AnnotationMetadataGet the value of the given annotation member.- Specified by:
getValuein interfaceAnnotationMetadata- Specified by:
getValuein interfaceAnnotationMetadataDelegate- Type Parameters:
T- The value- Parameters:
annotation- The annotation classmember- The annotation memberrequiredType- The required type- Returns:
- An
Optionalof the value
-
getValue
Description copied from interface:AnnotationMetadataGet the value of default "value" the given annotation.- Specified by:
getValuein interfaceAnnotationMetadata- Specified by:
getValuein interfaceAnnotationMetadataDelegate- Type Parameters:
T- The value- Parameters:
annotation- The annotation classrequiredType- The required type- Returns:
- An
Optionalof the value
-
getValue
Description copied from interface:AnnotationMetadataGet the value of the given annotation member.- Specified by:
getValuein interfaceAnnotationMetadata- Specified by:
getValuein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotation classmember- The annotation member- Returns:
- An
Optionalof the value
-
getValue
Description copied from interface:AnnotationMetadataGet the value of the given annotation member.- Specified by:
getValuein interfaceAnnotationMetadata- Specified by:
getValuein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotation classmember- The annotation member- Returns:
- An
Optionalof the value
-
getValue
Description copied from interface:AnnotationMetadataGet the value of default "value" the given annotation.- Specified by:
getValuein interfaceAnnotationMetadata- Specified by:
getValuein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotation class- Returns:
- An
Optionalof the value
-
getValue
Description copied from interface:AnnotationMetadataGet the value of default "value" the given annotation.- Specified by:
getValuein interfaceAnnotationMetadata- Specified by:
getValuein interfaceAnnotationMetadataDelegate- Parameters:
annotation- The annotation class- Returns:
- An
Optionalof the value
-
getValues
Description copied from interface:AnnotationMetadataGet all values for the given annotation.- Specified by:
getValuesin interfaceAnnotationMetadata- Specified by:
getValuesin interfaceAnnotationMetadataDelegate- Type Parameters:
T- Generic type- Parameters:
annotation- The annotation namevalueType- valueType- Returns:
- The
OptionalValues
-
getValues
Description copied from interface:AnnotationMetadataGet all values for the given annotation and type of the underlying values.- Specified by:
getValuesin interfaceAnnotationMetadata- Specified by:
getValuesin interfaceAnnotationMetadataDelegate- Type Parameters:
T- Generic type- Parameters:
annotation- The annotation namevalueType- valueType- Returns:
- The
OptionalValues
-
getValues
Description copied from interface:AnnotationMetadataGet all values for the given annotation and type of the underlying values.- Specified by:
getValuesin interfaceAnnotationMetadata- Parameters:
annotation- The annotation name- Returns:
- An immutable map of values
-
getDeclaredAnnotation
Description copied from interface:AnnotationSourceFind anAnnotationValuefor the given annotation name.- Specified by:
getDeclaredAnnotationin interfaceAnnotationMetadataDelegate- Specified by:
getDeclaredAnnotationin interfaceAnnotationSource- Type Parameters:
T- The annotation type- Parameters:
annotationClass- The annotation name- Returns:
- A
AnnotationValueinstance or null
-
getAnnotation
Description copied from interface:AnnotationSourceFind anAnnotationValuefor the given annotation name.- Specified by:
getAnnotationin interfaceAnnotationMetadataDelegate- Specified by:
getAnnotationin interfaceAnnotationSource- Type Parameters:
T- The annotation type- Parameters:
annotationClass- The annotation name- Returns:
- A
AnnotationValueinstance or null
-
getAnnotation
Description copied from interface:AnnotationSourceFind anAnnotationValuefor the given annotation name.- Specified by:
getAnnotationin interfaceAnnotationMetadataDelegate- Specified by:
getAnnotationin interfaceAnnotationSource- Type Parameters:
T- The annotation type- Parameters:
annotation- The annotation name- Returns:
- A
AnnotationValueinstance or null
-
findAnnotation
Description copied from interface:AnnotationSourceFind anAnnotationValuefor the given annotation name.- Specified by:
findAnnotationin interfaceAnnotationMetadataDelegate- Specified by:
findAnnotationin interfaceAnnotationMetadataProvider- Specified by:
findAnnotationin interfaceAnnotationSource- Type Parameters:
T- The annotation type- Parameters:
annotation- The annotation name- Returns:
- A
AnnotationValueinstance
-
findAnnotation
Description copied from interface:AnnotationSourceFind anAnnotationValuefor the given annotation type.- Specified by:
findAnnotationin interfaceAnnotationMetadata- Specified by:
findAnnotationin interfaceAnnotationMetadataDelegate- Specified by:
findAnnotationin interfaceAnnotationMetadataProvider- Specified by:
findAnnotationin interfaceAnnotationSource- Type Parameters:
T- The annotation type- Parameters:
annotationClass- The annotation- Returns:
- A
AnnotationValueinstance
-
findDeclaredAnnotation
public <T extends Annotation> Optional<AnnotationValue<T>> findDeclaredAnnotation(Class<T> annotationClass) Description copied from interface:AnnotationSourceGet all values for the given annotation that are directly declared on the annotated element.- Specified by:
findDeclaredAnnotationin interfaceAnnotationMetadata- Specified by:
findDeclaredAnnotationin interfaceAnnotationMetadataDelegate- Specified by:
findDeclaredAnnotationin interfaceAnnotationMetadataProvider- Specified by:
findDeclaredAnnotationin interfaceAnnotationSource- Type Parameters:
T- The annotation type- Parameters:
annotationClass- The annotation name- Returns:
- A
AnnotationValueinstance
-
findDeclaredAnnotation
public <T extends Annotation> Optional<AnnotationValue<T>> findDeclaredAnnotation(String annotation) Description copied from interface:AnnotationSourceGet all values for the given annotation that are directly declared on the annotated element.- Specified by:
findDeclaredAnnotationin interfaceAnnotationMetadataDelegate- Specified by:
findDeclaredAnnotationin interfaceAnnotationMetadataProvider- Specified by:
findDeclaredAnnotationin interfaceAnnotationSource- Type Parameters:
T- The annotation type- Parameters:
annotation- The annotation name- Returns:
- A
AnnotationValueinstance
-
synthesizeDeclaredAnnotationsByType
Description copied from interface:AnnotationSourceSynthesizes a new annotations from the metadata for the given type. This method works by creating a runtime proxy of the annotation interface and should be avoided in favour of direct use of the annotation metadata and only used for unique cases that require integrating third party libraries.- Specified by:
synthesizeDeclaredAnnotationsByTypein interfaceAnnotationMetadataDelegate- Specified by:
synthesizeDeclaredAnnotationsByTypein interfaceAnnotationMetadataProvider- Specified by:
synthesizeDeclaredAnnotationsByTypein interfaceAnnotationSource- Type Parameters:
T- The annotation generic type- Parameters:
annotationClass- The annotation type- Returns:
- Declared annotations by the given type
-
synthesizeAnnotationsByType
Description copied from interface:AnnotationSourceSynthesizes a new annotations from the metadata for the given type. This method works by creating a runtime proxy of the annotation interface and should be avoided in favour of direct use of the annotation metadata and only used for unique cases that require integrating third party libraries.- Specified by:
synthesizeAnnotationsByTypein interfaceAnnotationMetadataDelegate- Specified by:
synthesizeAnnotationsByTypein interfaceAnnotationMetadataProvider- Specified by:
synthesizeAnnotationsByTypein interfaceAnnotationSource- Type Parameters:
T- The annotation generic type- Parameters:
annotationClass- The annotation type- Returns:
- All annotations by the given type
-
synthesizeDeclared
Description copied from interface:AnnotationSourceSynthesizes a new annotation from the metadata for the given annotation type. This method works by creating a runtime proxy of the annotation interface and should be avoided in favour of direct use of the annotation metadata and only used for unique cases that require integrating third party libraries.This method ignores inherited annotations. (Returns null if no annotations are directly present on this element.)
- Specified by:
synthesizeDeclaredin interfaceAnnotationMetadataDelegate- Specified by:
synthesizeDeclaredin interfaceAnnotationMetadataProvider- Specified by:
synthesizeDeclaredin interfaceAnnotationSource- Type Parameters:
T- The annotation generic type- Parameters:
annotationClass- The annotation class- Returns:
- The annotation or null if it doesn't exist
-
synthesize
Description copied from interface:AnnotationSourceSynthesizes a new annotation from the metadata for the given annotation type. This method works by creating a runtime proxy of the annotation interface and should be avoided in favour of direct use of the annotation metadata and only used for unique cases that require integrating third party libraries.- Specified by:
synthesizein interfaceAnnotationMetadataDelegate- Specified by:
synthesizein interfaceAnnotationMetadataProvider- Specified by:
synthesizein interfaceAnnotationSource- Type Parameters:
T- The annotation generic type- Parameters:
annotationClass- The annotation class- Returns:
- The annotation or null if it doesn't exist
-
synthesize
Description copied from interface:AnnotationSourceSynthesizes a new annotation for the given annotation type using the member values of the given source annotation.This method allows supporting synthesizing annotations that have been renamed, for example a
jakarta.inject.Namedannotation an be synthesized from the metadata of the ajakarta.inject.Namedannotation.- Specified by:
synthesizein interfaceAnnotationMetadataDelegate- Specified by:
synthesizein interfaceAnnotationSource- Type Parameters:
T- The annotation generic type- Parameters:
annotationClass- The annotation classsourceAnnotation- The source annotation that provides the member values- Returns:
- The annotation or null if it doesn't exist
-
synthesizeDeclared
public <T extends Annotation> T synthesizeDeclared(Class<T> annotationClass, String sourceAnnotation) Description copied from interface:AnnotationSourceSynthesizes a new annotation declared for the given annotation type using the member values of the given source annotation.This method allows supporting synthesizing annotations that have been renamed, for example a
jakarta.inject.Namedannotation an be synthesized from the metadata of the ajakarta.inject.Namedannotation.- Specified by:
synthesizeDeclaredin interfaceAnnotationMetadataDelegate- Specified by:
synthesizeDeclaredin interfaceAnnotationSource- Type Parameters:
T- The annotation generic type- Parameters:
annotationClass- The annotation classsourceAnnotation- The source annotation that provides the member values- Returns:
- The annotation or null if it doesn't exist
-
getAnnotationValuesByType
public <T extends Annotation> List<AnnotationValue<T>> getAnnotationValuesByType(Class<T> annotationType) Description copied from interface:AnnotationMetadataGets all the annotation values by the given repeatable type.- Specified by:
getAnnotationValuesByTypein interfaceAnnotationMetadata- Specified by:
getAnnotationValuesByTypein interfaceAnnotationMetadataDelegate- Type Parameters:
T- The annotation type- Parameters:
annotationType- The annotation type- Returns:
- A list of values
-
getDeclaredAnnotationValuesByType
public <T extends Annotation> List<AnnotationValue<T>> getDeclaredAnnotationValuesByType(Class<T> annotationType) Description copied from interface:AnnotationMetadataGets only declared annotation values by the given repeatable type.- Specified by:
getDeclaredAnnotationValuesByTypein interfaceAnnotationMetadata- Specified by:
getDeclaredAnnotationValuesByTypein interfaceAnnotationMetadataDelegate- Type Parameters:
T- The annotation type- Parameters:
annotationType- The annotation type- Returns:
- A list of values
-
getAnnotationValuesByStereotype
public <T extends Annotation> List<AnnotationValue<T>> getAnnotationValuesByStereotype(String stereotype) Description copied from interface:AnnotationMetadataResolve all annotation values that feature the given stereotype.- Specified by:
getAnnotationValuesByStereotypein interfaceAnnotationMetadata- Specified by:
getAnnotationValuesByStereotypein interfaceAnnotationMetadataDelegate- Type Parameters:
T- The annotation type- Parameters:
stereotype- The annotation names- Returns:
- A set of annotation names
-
getDeclaredAnnotationValuesByName
public <T extends Annotation> List<AnnotationValue<T>> getDeclaredAnnotationValuesByName(String annotationType) Description copied from interface:AnnotationMetadataGets only declared annotation values by the given repeatable type name.- Specified by:
getDeclaredAnnotationValuesByNamein interfaceAnnotationMetadata- Specified by:
getDeclaredAnnotationValuesByNamein interfaceAnnotationMetadataDelegate- Type Parameters:
T- The annotation type- Parameters:
annotationType- The annotation type- Returns:
- A list of values
-
getAnnotationValuesByName
public <T extends Annotation> List<AnnotationValue<T>> getAnnotationValuesByName(String annotationType) Description copied from interface:AnnotationMetadataGets all the annotation values by the given repeatable type name.- Specified by:
getAnnotationValuesByNamein interfaceAnnotationMetadata- Specified by:
getAnnotationValuesByNamein interfaceAnnotationMetadataDelegate- Type Parameters:
T- The annotation type- Parameters:
annotationType- The annotation type- Returns:
- A list of values
-