@Internal public class DefaultAnnotationMetadata extends java.lang.Object implements AnnotationMetadata, java.lang.Cloneable
AnnotationMetadata.
NOTE: Although required to be public This is an internal class and should not be referenced directly in user code
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,java.lang.annotation.Annotation> |
annotationMap |
protected java.util.Map<java.lang.String,java.lang.annotation.Annotation> |
declaredAnnotationMap |
CLASS_NAME_SUFFIX, EMPTY_METADATA, VALUE_MEMBEREMPTY| Modifier | Constructor and Description |
|---|---|
protected |
DefaultAnnotationMetadata()
Constructs empty annotation metadata.
|
|
DefaultAnnotationMetadata(java.util.Map<java.lang.String,java.util.Map<java.lang.CharSequence,java.lang.Object>> declaredAnnotations,
java.util.Map<java.lang.String,java.util.Map<java.lang.CharSequence,java.lang.Object>> declaredStereotypes,
java.util.Map<java.lang.String,java.util.Map<java.lang.CharSequence,java.lang.Object>> allStereotypes,
java.util.Map<java.lang.String,java.util.Map<java.lang.CharSequence,java.lang.Object>> allAnnotations,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> annotationsByStereotype)
This constructor is designed to be used by compile time produced subclasses.
|
|
DefaultAnnotationMetadata(java.util.Map<java.lang.String,java.util.Map<java.lang.CharSequence,java.lang.Object>> declaredAnnotations,
java.util.Map<java.lang.String,java.util.Map<java.lang.CharSequence,java.lang.Object>> declaredStereotypes,
java.util.Map<java.lang.String,java.util.Map<java.lang.CharSequence,java.lang.Object>> allStereotypes,
java.util.Map<java.lang.String,java.util.Map<java.lang.CharSequence,java.lang.Object>> allAnnotations,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> annotationsByStereotype,
boolean hasPropertyExpressions)
This constructor is designed to be used by compile time produced subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAnnotation(java.lang.String annotation,
java.util.Map<java.lang.CharSequence,java.lang.Object> values)
Adds an annotation and its member values, if the annotation already exists the data will be merged with existing
values replaced.
|
protected void |
addAnnotation(java.lang.String annotation,
java.util.Map<java.lang.CharSequence,java.lang.Object> values,
java.lang.annotation.RetentionPolicy retentionPolicy)
Adds an annotation and its member values, if the annotation already exists the data will be merged with existing
values replaced.
|
protected void |
addAnnotationValuesFromData(java.util.List results,
java.util.Map<java.lang.CharSequence,java.lang.Object> values)
Adds any annotation values found in the values map to the results.
|
protected void |
addDeclaredAnnotation(java.lang.String annotation,
java.util.Map<java.lang.CharSequence,java.lang.Object> values)
Adds an annotation directly declared on the element and its member values, if the annotation already exists the
data will be merged with existing values replaced.
|
protected void |
addDeclaredAnnotation(java.lang.String annotation,
java.util.Map<java.lang.CharSequence,java.lang.Object> values,
java.lang.annotation.RetentionPolicy retentionPolicy)
Adds an annotation directly declared on the element and its member values, if the annotation already exists the
data will be merged with existing values replaced.
|
protected void |
addDeclaredRepeatable(java.lang.String annotationName,
AnnotationValue annotationValue)
Adds a repeatable annotation value.
|
protected void |
addDeclaredRepeatable(java.lang.String annotationName,
AnnotationValue annotationValue,
java.lang.annotation.RetentionPolicy retentionPolicy)
Adds a repeatable annotation value.
|
protected void |
addDeclaredRepeatableStereotype(java.util.List<java.lang.String> parents,
java.lang.String stereotype,
AnnotationValue annotationValue)
Adds a repeatable declared stereotype value.
|
protected void |
addDeclaredStereotype(java.util.List<java.lang.String> parentAnnotations,
java.lang.String stereotype,
java.util.Map<java.lang.CharSequence,java.lang.Object> values)
Adds a stereotype and its member values, if the annotation already exists the data will be merged with existing
values replaced.
|
protected void |
addDeclaredStereotype(java.util.List<java.lang.String> parentAnnotations,
java.lang.String stereotype,
java.util.Map<java.lang.CharSequence,java.lang.Object> values,
java.lang.annotation.RetentionPolicy retentionPolicy)
Adds a stereotype and its member values, if the annotation already exists the data will be merged with existing
values replaced.
|
protected void |
addDefaultAnnotationValues(java.lang.String annotation,
java.util.Map<java.lang.CharSequence,java.lang.Object> values)
Adds an annotation directly declared on the element and its member values, if the annotation already exists the
data will be merged with existing values replaced.
|
protected void |
addRepeatable(java.lang.String annotationName,
AnnotationValue annotationValue)
Adds a repeatable annotation value.
|
protected void |
addRepeatable(java.lang.String annotationName,
AnnotationValue annotationValue,
java.lang.annotation.RetentionPolicy retentionPolicy)
Adds a repeatable annotation value.
|
protected void |
addRepeatableStereotype(java.util.List<java.lang.String> parents,
java.lang.String stereotype,
AnnotationValue annotationValue)
Adds a repeatable stereotype value.
|
protected void |
addStereotype(java.util.List<java.lang.String> parentAnnotations,
java.lang.String stereotype,
java.util.Map<java.lang.CharSequence,java.lang.Object> values)
Adds a stereotype and its member values, if the annotation already exists the data will be merged with existing
values replaced.
|
protected void |
addStereotype(java.util.List<java.lang.String> parentAnnotations,
java.lang.String stereotype,
java.util.Map<java.lang.CharSequence,java.lang.Object> values,
java.lang.annotation.RetentionPolicy retentionPolicy)
Adds a stereotype and its member values, if the annotation already exists the data will be merged with existing
values replaced.
|
protected void |
addValuesToResults(java.util.List<AnnotationValue> results,
AnnotationValue values)
Adds a values instance to the results.
|
static boolean |
areAnnotationDefaultsRegistered(java.lang.String annotation)
Returns whether annotation defaults are registered for the give annotation.
|
java.util.Optional<java.lang.Boolean> |
booleanValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member)
The value as an optional boolean for the given annotation and member.
|
java.util.Optional<java.lang.Boolean> |
booleanValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member,
java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
Retrieve the boolean value and optionally map its value.
|
java.util.Optional<java.lang.Boolean> |
booleanValue(java.lang.String annotation,
java.lang.String member)
The value as an optional boolean for the given annotation and member.
|
java.util.Optional<java.lang.Boolean> |
booleanValue(java.lang.String annotation,
java.lang.String member,
java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
Retrieve the boolean value and optionally map its value.
|
java.util.Optional<java.lang.Class> |
classValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member)
The value of the annotation as a Class.
|
java.util.Optional<java.lang.Class> |
classValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member,
java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
Retrieve the class value and optionally map its value.
|
java.util.Optional<java.lang.Class> |
classValue(java.lang.String annotation,
java.lang.String member)
The value of the annotation as a Class.
|
java.util.Optional<java.lang.Class> |
classValue(java.lang.String annotation,
java.lang.String member,
java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
Retrieve the class value and optionally map its value.
|
<T> java.lang.Class<T>[] |
classValues(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member)
The value of the annotation as a Class.
|
<T> java.lang.Class<T>[] |
classValues(java.lang.String annotation,
java.lang.String member)
The value of the annotation as a Class.
|
DefaultAnnotationMetadata |
clone() |
static void |
contributeDefaults(AnnotationMetadata target,
AnnotationMetadata source)
Contributes defaults to the given target.
|
java.util.OptionalDouble |
doubleValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member)
The value as an
OptionalDouble for the given annotation and member. |
java.util.OptionalDouble |
doubleValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member,
java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
Retrieve the double value and optionally map its value.
|
java.util.OptionalDouble |
doubleValue(java.lang.String annotation,
java.lang.String member)
The value as an
OptionalDouble for the given annotation and member. |
java.util.OptionalDouble |
doubleValue(java.lang.String annotation,
java.lang.String member,
java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
Retrieve the double value and optionally map its value.
|
<E extends java.lang.Enum> |
enumValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.Class<E> enumType)
The value of the annotation as a Class.
|
<E extends java.lang.Enum> |
enumValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member,
java.lang.Class<E> enumType)
The value of the annotation as a Class.
|
<E extends java.lang.Enum> |
enumValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member,
java.lang.Class<E> enumType,
java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
Retrieve the class value and optionally map its value.
|
<E extends java.lang.Enum> |
enumValue(java.lang.String annotation,
java.lang.Class<E> enumType)
The value of the given enum.
|
<E extends java.lang.Enum> |
enumValue(java.lang.String annotation,
java.lang.String member,
java.lang.Class<E> enumType)
The value of the annotation as a Class.
|
<E extends java.lang.Enum> |
enumValue(java.lang.String annotation,
java.lang.String member,
java.lang.Class<E> enumType,
java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
Retrieve the class value and optionally map its value.
|
<E extends java.lang.Enum> |
enumValues(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.Class<E> enumType)
The enum values for the given annotation.
|
<E extends java.lang.Enum> |
enumValues(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member,
java.lang.Class<E> enumType)
The enum values for the given annotation.
|
<E extends java.lang.Enum> |
enumValues(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member,
java.lang.Class<E> enumType,
java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
Retrieve the enum values and optionally map its value.
|
<E extends java.lang.Enum> |
enumValues(java.lang.String annotation,
java.lang.Class<E> enumType)
The enum values for the given annotation.
|
<E extends java.lang.Enum> |
enumValues(java.lang.String annotation,
java.lang.String member,
java.lang.Class<E> enumType)
The enum values for the given annotation.
|
<E extends java.lang.Enum> |
enumValues(java.lang.String annotation,
java.lang.String member,
java.lang.Class<E> enumType,
java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
Retrieve the enum values and optionally map its value.
|
<T extends java.lang.annotation.Annotation> |
findAnnotation(java.lang.String annotation)
Find an
AnnotationValue for the given annotation name. |
<T extends java.lang.annotation.Annotation> |
findDeclaredAnnotation(java.lang.String annotation)
Get all of the values for the given annotation that are directly declared on the annotated element.
|
java.util.Optional<java.lang.String> |
getAnnotationNameByStereotype(java.lang.String stereotype)
Find the first annotation name for the given stereotype.
|
java.util.Set<java.lang.String> |
getAnnotationNames()
All the annotation names this metadata declares.
|
java.util.List<java.lang.String> |
getAnnotationNamesByStereotype(java.lang.String stereotype)
Resolve all of the annotation names that feature the given stereotype.
|
java.util.Optional<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getAnnotationType(java.lang.String name)
Gets the type for a given annotation if it is present on the classpath.
|
java.util.Optional<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getAnnotationType(java.lang.String name,
java.lang.ClassLoader classLoader)
Gets the type for a given annotation if it is present on the classpath.
|
java.util.Optional<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getAnnotationTypeByStereotype(java.lang.String stereotype)
Find the first annotation name for the given stereotype.
|
<T extends java.lang.annotation.Annotation> |
getAnnotationValuesByType(java.lang.Class<T> annotationType)
Gets all the annotation values by the given repeatable type.
|
java.util.Set<java.lang.String> |
getDeclaredAnnotationNames()
All the declared annotation names this metadata declares.
|
java.util.List<java.lang.String> |
getDeclaredAnnotationNamesByStereotype(java.lang.String stereotype)
Resolve all of the annotations names for the given stereotype that are declared annotations.
|
<T extends java.lang.annotation.Annotation> |
getDeclaredAnnotationValuesByType(java.lang.Class<T> annotationType)
Gets only declared annotation values by the given repeatable type.
|
<T> java.util.Optional<T> |
getDefaultValue(java.lang.String annotation,
java.lang.String member,
Argument<T> requiredType)
Return the default value for the given annotation member.
|
<T> java.util.Optional<T> |
getDefaultValue(java.lang.String annotation,
java.lang.String member,
java.lang.Class<T> requiredType)
Return the default value for the given annotation member.
|
java.util.Map<java.lang.String,java.lang.Object> |
getDefaultValues(java.lang.String annotation)
Return the default values for the given annotation name.
|
<T> java.util.Optional<T> |
getValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member,
java.lang.Class<T> requiredType)
Get the value of the given annotation member.
|
<T> java.util.Optional<T> |
getValue(java.lang.String annotation,
java.lang.String member,
Argument<T> requiredType)
Get the value of the given annotation member.
|
<T> java.util.Optional<T> |
getValue(java.lang.String annotation,
java.lang.String member,
Argument<T> requiredType,
java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
Resolves the given value performing type conversion as necessary.
|
<T> OptionalValues<T> |
getValues(java.lang.String annotation,
java.lang.Class<T> valueType)
Get all of the values for the given annotation and type of the underlying values.
|
boolean |
hasAnnotation(java.lang.String annotation)
Checks whether this object has the given annotation on the object itself or inherited from a parent.
|
boolean |
hasDeclaredAnnotation(java.lang.String annotation)
Checks whether this object has the given annotation directly declared on the object.
|
boolean |
hasDeclaredStereotype(java.lang.String annotation)
Checks whether this object has the given annotation stereotype on the object itself and not inherited from a parent
|
boolean |
hasPropertyExpressions()
Does the metadata contain any property expressions like
${foo.bar}. |
boolean |
hasStereotype(java.lang.String annotation)
Checks whether this object has the given annotation stereotype on the object itself or inherited from a parent
|
java.util.OptionalInt |
intValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member)
The value as an
OptionalInt for the given annotation and member. |
java.util.OptionalInt |
intValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member,
java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
Retrieve the int value and optionally map its value.
|
java.util.OptionalInt |
intValue(java.lang.String annotation,
java.lang.String member)
The value as an
OptionalInt for the given annotation and member. |
java.util.OptionalInt |
intValue(java.lang.String annotation,
java.lang.String member,
java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
Retrieve the int value and optionally map its value.
|
boolean |
isEmpty()
Is the annotation metadata empty.
|
boolean |
isFalse(java.lang.String annotation,
java.lang.String member)
Returns whether the value of the given member is true.
|
boolean |
isPresent(java.lang.String annotation,
java.lang.String member)
Returns whether the value of the given member is present.
|
boolean |
isTrue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member)
Returns whether the value of the given member is true.
|
boolean |
isTrue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member,
java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
Retrieve the boolean value and optionally map its value.
|
boolean |
isTrue(java.lang.String annotation,
java.lang.String member)
Returns whether the value of the given member is true.
|
boolean |
isTrue(java.lang.String annotation,
java.lang.String member,
java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
Retrieve the boolean value and optionally map its value.
|
java.util.OptionalLong |
longValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member)
The value as an
OptionalLong for the given annotation and member. |
java.util.OptionalLong |
longValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member,
java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
Retrieve the long value and optionally map its value.
|
java.util.OptionalLong |
longValue(java.lang.String annotation,
java.lang.String member)
The value as an
OptionalLong for the given annotation and member. |
java.util.OptionalLong |
longValue(java.lang.String annotation,
java.lang.String member,
java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
Retrieve the long value and optionally map its value.
|
static AnnotationMetadata |
mutateMember(AnnotationMetadata annotationMetadata,
java.lang.String annotationName,
java.util.Map<java.lang.CharSequence,java.lang.Object> members)
Sets a member of the given
AnnotationMetadata return a new annotation metadata instance without
mutating the existing. |
static AnnotationMetadata |
mutateMember(AnnotationMetadata annotationMetadata,
java.lang.String annotationName,
java.lang.String member,
java.lang.Object value)
Sets a member of the given
AnnotationMetadata return a new annotation metadata instance without
mutating the existing. |
static void |
registerAnnotationDefaults(AnnotationClassValue<?> annotation,
java.util.Map<java.lang.String,java.lang.Object> defaultValues)
Registers annotation default values.
|
static void |
registerAnnotationDefaults(java.lang.String annotation,
java.util.Map<java.lang.String,java.lang.Object> defaultValues)
Registers annotation default values.
|
static void |
registerAnnotationType(AnnotationClassValue<?> annotation)
Registers annotation default values.
|
java.util.Optional<java.lang.String> |
stringValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member)
The value as an optional string for the given annotation and member.
|
java.util.Optional<java.lang.String> |
stringValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member,
java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
Retrieve the string value and optionally map its value.
|
java.util.Optional<java.lang.String> |
stringValue(java.lang.String annotation,
java.lang.String member)
The value as an optional string for the given annotation and member.
|
java.util.Optional<java.lang.String> |
stringValue(java.lang.String annotation,
java.lang.String member,
java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
Retrieve the string value and optionally map its value.
|
java.lang.String[] |
stringValues(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member)
The values as string array for the given annotation and member.
|
java.lang.String[] |
stringValues(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member,
java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
Retrieve the string value and optionally map its value.
|
<T extends java.lang.annotation.Annotation> |
synthesize(java.lang.Class<T> annotationClass)
Synthesizes a new annotation from the metadata for the given annotation type.
|
java.lang.annotation.Annotation[] |
synthesizeAll()
Synthesizes a new annotations from the metadata.
|
<T extends java.lang.annotation.Annotation> |
synthesizeAnnotationsByType(java.lang.Class<T> annotationClass)
Synthesizes a new annotations from the metadata for the given type.
|
java.lang.annotation.Annotation[] |
synthesizeDeclared()
Synthesizes a new annotations from the metadata.
|
<T extends java.lang.annotation.Annotation> |
synthesizeDeclared(java.lang.Class<T> annotationClass)
Synthesizes a new annotation from the metadata for the given annotation type.
|
<T extends java.lang.annotation.Annotation> |
synthesizeDeclaredAnnotationsByType(java.lang.Class<T> annotationClass)
Synthesizes a new annotations from the metadata for the given type.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbooleanValue, booleanValue, classValue, classValue, classValues, classValues, doubleValue, findAnnotation, findDeclaredAnnotation, getAnnotationNameByStereotype, getAnnotationNamesByStereotype, getAnnotationTypeByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getDeclaredAnnotationNameByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationTypeByStereotype, getDefaultValue, getDefaultValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValues, hasAnnotation, hasDeclaredAnnotation, hasDeclaredStereotype, hasDeclaredStereotype, hasDeclaredStereotype, hasSimpleAnnotation, hasSimpleDeclaredAnnotation, hasStereotype, hasStereotype, hasStereotype, intValue, isAnnotationPresent, isDeclaredAnnotationPresent, isFalse, isPresent, stringValue, stringValue, stringValuesgetAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, synthesize, synthesizeAll, synthesizeDeclared, synthesizeDeclaredprotected final java.util.Map<java.lang.String,java.lang.annotation.Annotation> annotationMap
protected final java.util.Map<java.lang.String,java.lang.annotation.Annotation> declaredAnnotationMap
@Internal protected DefaultAnnotationMetadata()
@Internal public DefaultAnnotationMetadata(@Nullable java.util.Map<java.lang.String,java.util.Map<java.lang.CharSequence,java.lang.Object>> declaredAnnotations, @Nullable java.util.Map<java.lang.String,java.util.Map<java.lang.CharSequence,java.lang.Object>> declaredStereotypes, @Nullable java.util.Map<java.lang.String,java.util.Map<java.lang.CharSequence,java.lang.Object>> allStereotypes, @Nullable java.util.Map<java.lang.String,java.util.Map<java.lang.CharSequence,java.lang.Object>> allAnnotations, @Nullable java.util.Map<java.lang.String,java.util.List<java.lang.String>> annotationsByStereotype)
declaredAnnotations - The directly declared annotationsdeclaredStereotypes - The directly declared stereotypesallStereotypes - All of the stereotypesallAnnotations - All of the annotationsannotationsByStereotype - The annotations by stereotype@Internal public DefaultAnnotationMetadata(@Nullable java.util.Map<java.lang.String,java.util.Map<java.lang.CharSequence,java.lang.Object>> declaredAnnotations, @Nullable java.util.Map<java.lang.String,java.util.Map<java.lang.CharSequence,java.lang.Object>> declaredStereotypes, @Nullable java.util.Map<java.lang.String,java.util.Map<java.lang.CharSequence,java.lang.Object>> allStereotypes, @Nullable java.util.Map<java.lang.String,java.util.Map<java.lang.CharSequence,java.lang.Object>> allAnnotations, @Nullable java.util.Map<java.lang.String,java.util.List<java.lang.String>> annotationsByStereotype, boolean hasPropertyExpressions)
declaredAnnotations - The directly declared annotationsdeclaredStereotypes - The directly declared stereotypesallStereotypes - All of the stereotypesallAnnotations - All of the annotationsannotationsByStereotype - The annotations by stereotypehasPropertyExpressions - Whether property expressions exist in the metadatapublic 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 AnnotationMetadata@NonNull public java.util.Map<java.lang.String,java.lang.Object> getDefaultValues(@NonNull java.lang.String annotation)
AnnotationMetadatagetDefaultValues in interface AnnotationMetadataannotation - The annotation namepublic boolean isPresent(@NonNull java.lang.String annotation, @NonNull java.lang.String member)
AnnotationMetadataisPresent in interface AnnotationMetadataannotation - The annotation classmember - The annotation memberpublic <E extends java.lang.Enum> java.util.Optional<E> enumValue(@NonNull java.lang.String annotation, java.lang.Class<E> enumType)
AnnotationMetadataenumValue in interface AnnotationMetadataE - The enum typeannotation - The annotationenumType - The enum typeOptional enum valuepublic <E extends java.lang.Enum> java.util.Optional<E> enumValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member, java.lang.Class<E> enumType)
AnnotationMetadataenumValue in interface AnnotationMetadataE - The enum typeannotation - The annotationmember - The annotation memberenumType - The enum typeOptional classpublic <E extends java.lang.Enum> java.util.Optional<E> enumValue(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, java.lang.Class<E> enumType)
AnnotationMetadataenumValue in interface AnnotationMetadataE - The enum typeannotation - The annotationenumType - The enum typeOptional classpublic <E extends java.lang.Enum> java.util.Optional<E> enumValue(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, @NonNull java.lang.String member, java.lang.Class<E> enumType)
AnnotationMetadataenumValue in interface AnnotationMetadataE - The enum typeannotation - The annotationmember - The annotation memberenumType - The enum typeOptional class@Internal public <E extends java.lang.Enum> java.util.Optional<E> enumValue(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, @NonNull java.lang.String member, java.lang.Class<E> enumType, @Nullable java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
E - The enum typeannotation - The annotationmember - The memberenumType - The enum typevalueMapper - The value mapperpublic <E extends java.lang.Enum> E[] enumValues(@NonNull java.lang.String annotation, java.lang.Class<E> enumType)
AnnotationMetadataenumValues in interface AnnotationMetadataE - The enum typeannotation - The annotationenumType - The enum typepublic <E extends java.lang.Enum> E[] enumValues(@NonNull java.lang.String annotation, @NonNull java.lang.String member, java.lang.Class<E> enumType)
AnnotationMetadataenumValues in interface AnnotationMetadataE - The enum typeannotation - The annotationmember - The annotation memberenumType - The enum typepublic <E extends java.lang.Enum> E[] enumValues(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, java.lang.Class<E> enumType)
AnnotationMetadataenumValues in interface AnnotationMetadataE - The enum typeannotation - The annotationenumType - The enum typepublic <E extends java.lang.Enum> E[] enumValues(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, @NonNull java.lang.String member, java.lang.Class<E> enumType)
AnnotationMetadataenumValues in interface AnnotationMetadataE - The enum typeannotation - The annotationmember - The annotation memberenumType - The enum typepublic <E extends java.lang.Enum> E[] enumValues(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, @NonNull java.lang.String member, java.lang.Class<E> enumType, @Nullable java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
E - The enum typeannotation - The annotationmember - The memberenumType - The enum typevalueMapper - The value mapperpublic <E extends java.lang.Enum> E[] enumValues(@NonNull java.lang.String annotation, @NonNull java.lang.String member, java.lang.Class<E> enumType, @Nullable java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
E - The enum typeannotation - The annotationmember - The memberenumType - The enum typevalueMapper - The value mapper@Internal public <E extends java.lang.Enum> java.util.Optional<E> enumValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member, java.lang.Class<E> enumType, @Nullable java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
E - The enum typeannotation - The annotationmember - The memberenumType - The enum typevalueMapper - The value mapperpublic <T> java.lang.Class<T>[] classValues(@NonNull java.lang.String annotation, @NonNull java.lang.String member)
AnnotationMetadataclassValues in interface AnnotationMetadataT - The type of the classannotation - The annotationmember - The annotation memberOptional classpublic <T> java.lang.Class<T>[] classValues(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, @NonNull java.lang.String member)
AnnotationMetadataclassValues in interface AnnotationMetadataT - The type of the classannotation - The annotationmember - The annotation memberOptional class@NonNull public java.util.Optional<java.lang.Class> classValue(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, @NonNull java.lang.String member)
AnnotationMetadataclassValue in interface AnnotationMetadataannotation - The annotationmember - The annotation memberOptional classpublic java.util.Optional<java.lang.Class> classValue(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, @NonNull java.lang.String member, java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
annotation - The annotationmember - The membervalueMapper - The value mapper@NonNull public java.util.Optional<java.lang.Class> classValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member)
AnnotationMetadataclassValue in interface AnnotationMetadataannotation - The annotationmember - The annotation memberOptional class@Internal public java.util.Optional<java.lang.Class> classValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member, @Nullable java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
annotation - The annotationmember - The membervalueMapper - The value mapper@NonNull public java.util.OptionalInt intValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member)
AnnotationMetadataOptionalInt for the given annotation and member.intValue in interface AnnotationMetadataannotation - The annotationmember - The memberOptionalInt value@NonNull public java.util.OptionalInt intValue(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, @NonNull java.lang.String member)
AnnotationMetadataOptionalInt for the given annotation and member.intValue in interface AnnotationMetadataannotation - The annotationmember - The memberOptionalInt value@Internal public java.util.OptionalInt intValue(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, @NonNull java.lang.String member, @Nullable java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
annotation - The annotationmember - The membervalueMapper - The value mapperpublic java.util.Optional<java.lang.Boolean> booleanValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member)
AnnotationMetadatabooleanValue in interface AnnotationMetadataannotation - The annotationmember - The memberpublic java.util.Optional<java.lang.Boolean> booleanValue(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, @NonNull java.lang.String member)
AnnotationMetadatabooleanValue in interface AnnotationMetadataannotation - The annotationmember - The memberpublic java.util.Optional<java.lang.Boolean> booleanValue(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, @NonNull java.lang.String member, java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
annotation - The annotationmember - The membervalueMapper - The value mapper@NonNull public java.util.Optional<java.lang.Boolean> booleanValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member, @Nullable java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
annotation - The annotationmember - The membervalueMapper - The value mapper@NonNull public java.util.OptionalLong longValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member)
AnnotationMetadataOptionalLong for the given annotation and member.longValue in interface AnnotationMetadataannotation - The annotationmember - The memberOptionalLong value@NonNull public java.util.OptionalLong longValue(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, @NonNull java.lang.String member)
AnnotationMetadataOptionalLong for the given annotation and member.longValue in interface AnnotationMetadataannotation - The annotationmember - The memberOptionalLong value@Internal public java.util.OptionalLong longValue(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, @NonNull java.lang.String member, @Nullable java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
annotation - The annotationmember - The membervalueMapper - The value mapper@NonNull public java.util.OptionalLong longValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member, @Nullable java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
annotation - The annotationmember - The membervalueMapper - The value mapper@NonNull public java.util.OptionalInt intValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member, @Nullable java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
annotation - The annotationmember - The membervalueMapper - The value mapper@NonNull public java.util.Optional<java.lang.String> stringValue(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, @NonNull java.lang.String member)
AnnotationMetadatastringValue in interface AnnotationMetadataannotation - The annotationmember - The memberpublic java.util.Optional<java.lang.String> stringValue(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, @NonNull java.lang.String member, java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
annotation - The annotationmember - The membervalueMapper - The value mapper@NonNull public java.lang.String[] stringValues(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, @NonNull java.lang.String member)
AnnotationMetadatastringValues in interface AnnotationMetadataannotation - The annotationmember - The member@NonNull public java.lang.String[] stringValues(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, @NonNull java.lang.String member, java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
annotation - The annotationmember - The membervalueMapper - The value mapper@NonNull public java.util.Optional<java.lang.String> stringValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member)
AnnotationMetadatastringValue in interface AnnotationMetadataannotation - The annotationmember - The member@NonNull public java.util.Optional<java.lang.String> stringValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member, @Nullable java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
annotation - The annotationmember - The membervalueMapper - The value mapperpublic boolean isTrue(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, @NonNull java.lang.String member)
AnnotationMetadataisTrue in interface AnnotationMetadataannotation - The annotation classmember - The annotation memberpublic boolean isTrue(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, @NonNull java.lang.String member, java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
annotation - The annotationmember - The membervalueMapper - The value mapperpublic boolean isTrue(@NonNull java.lang.String annotation, @NonNull java.lang.String member)
AnnotationMetadataisTrue in interface AnnotationMetadataannotation - The annotation classmember - The annotation memberpublic boolean isTrue(@NonNull java.lang.String annotation, @NonNull java.lang.String member, @Nullable java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
annotation - The annotationmember - The membervalueMapper - The value mapperpublic boolean isFalse(@NonNull java.lang.String annotation, @NonNull java.lang.String member)
AnnotationMetadataisFalse in interface AnnotationMetadataannotation - The annotation classmember - The annotation member@NonNull public java.util.OptionalDouble doubleValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member)
AnnotationMetadataOptionalDouble for the given annotation and member.doubleValue in interface AnnotationMetadataannotation - The annotationmember - The memberOptionalDouble value@NonNull public java.util.OptionalDouble doubleValue(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, @NonNull java.lang.String member)
AnnotationMetadataOptionalDouble for the given annotation and member.doubleValue in interface AnnotationMetadataannotation - The annotationmember - The memberOptionalDouble value@Internal public java.util.OptionalDouble doubleValue(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, @NonNull java.lang.String member, @Nullable java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
annotation - The annotationmember - The membervalueMapper - The value mapper@NonNull @Internal public java.util.OptionalDouble doubleValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member, java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
annotation - The annotationmember - The membervalueMapper - The value mapper@NonNull public <T> java.util.Optional<T> getValue(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, @NonNull java.lang.String member, @NonNull java.lang.Class<T> requiredType)
AnnotationMetadatagetValue in interface AnnotationMetadataT - The valueannotation - The annotation classmember - The annotation memberrequiredType - The required typeOptional of the value@NonNull public <T> java.util.Optional<T> getValue(@NonNull java.lang.String annotation, @NonNull java.lang.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 public <T> java.util.Optional<T> getValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member, @NonNull Argument<T> requiredType, @Nullable java.util.function.Function<java.lang.Object,java.lang.Object> valueMapper)
T - The generic typeannotation - The annotationmember - The memberrequiredType - The required typevalueMapper - The value mapper@NonNull public <T> java.util.Optional<T> getDefaultValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member, @NonNull java.lang.Class<T> requiredType)
AnnotationMetadatagetDefaultValue in interface AnnotationMetadataT - The required generic typeannotation - The annotationmember - The memberrequiredType - The required type@NonNull public <T extends java.lang.annotation.Annotation> java.util.List<AnnotationValue<T>> getAnnotationValuesByType(@Nullable java.lang.Class<T> annotationType)
AnnotationMetadatagetAnnotationValuesByType in interface AnnotationMetadataT - The annotation typeannotationType - The annotation type@NonNull public <T extends java.lang.annotation.Annotation> java.util.List<AnnotationValue<T>> getDeclaredAnnotationValuesByType(@NonNull java.lang.Class<T> annotationType)
AnnotationMetadatagetDeclaredAnnotationValuesByType in interface AnnotationMetadataT - The annotation typeannotationType - The annotation typepublic <T extends java.lang.annotation.Annotation> T[] synthesizeAnnotationsByType(@NonNull java.lang.Class<T> annotationClass)
AnnotationSourcesynthesizeAnnotationsByType in interface AnnotationSourceT - The annotation generic typeannotationClass - The annotation typepublic <T extends java.lang.annotation.Annotation> T[] synthesizeDeclaredAnnotationsByType(@NonNull java.lang.Class<T> annotationClass)
AnnotationSourcesynthesizeDeclaredAnnotationsByType in interface AnnotationSourceT - The annotation generic typeannotationClass - The annotation typepublic boolean isEmpty()
AnnotationMetadataisEmpty in interface AnnotationMetadatapublic boolean hasDeclaredAnnotation(java.lang.String annotation)
AnnotationMetadatahasDeclaredAnnotation in interface AnnotationMetadataannotation - The annotationpublic boolean hasAnnotation(java.lang.String annotation)
AnnotationMetadatahasAnnotation in interface AnnotationMetadataannotation - The annotationpublic boolean hasStereotype(java.lang.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 annotationpublic boolean hasDeclaredStereotype(java.lang.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 public java.util.Optional<java.lang.Class<? extends java.lang.annotation.Annotation>> getAnnotationTypeByStereotype(@Nullable java.lang.String stereotype)
AnnotationMetadatagetAnnotationTypeByStereotype in interface AnnotationMetadatastereotype - The stereotype@NonNull public java.util.Optional<java.lang.String> getAnnotationNameByStereotype(@Nullable java.lang.String stereotype)
AnnotationMetadatagetAnnotationNameByStereotype in interface AnnotationMetadatastereotype - The stereotype@NonNull public java.util.List<java.lang.String> getAnnotationNamesByStereotype(@Nullable java.lang.String stereotype)
AnnotationMetadatagetAnnotationNamesByStereotype in interface AnnotationMetadatastereotype - The annotation names@NonNull public java.util.Set<java.lang.String> getAnnotationNames()
AnnotationMetadatagetAnnotationNames in interface AnnotationMetadata@NonNull public java.util.Set<java.lang.String> getDeclaredAnnotationNames()
AnnotationMetadatagetDeclaredAnnotationNames in interface AnnotationMetadata@NonNull public java.util.List<java.lang.String> getDeclaredAnnotationNamesByStereotype(@Nullable java.lang.String stereotype)
AnnotationMetadatagetDeclaredAnnotationNamesByStereotype in interface AnnotationMetadatastereotype - The stereotype@NonNull public java.util.Optional<java.lang.Class<? extends java.lang.annotation.Annotation>> getAnnotationType(@NonNull java.lang.String name)
AnnotationMetadatagetAnnotationType in interface AnnotationMetadataname - The type name@NonNull public java.util.Optional<java.lang.Class<? extends java.lang.annotation.Annotation>> getAnnotationType(@NonNull java.lang.String name, @NonNull java.lang.ClassLoader classLoader)
AnnotationMetadatagetAnnotationType in interface AnnotationMetadataname - The type nameclassLoader - The ClassLoader to load the type@NonNull public <T extends java.lang.annotation.Annotation> java.util.Optional<AnnotationValue<T>> findAnnotation(@NonNull java.lang.String annotation)
AnnotationSourceAnnotationValue for the given annotation name.findAnnotation in interface AnnotationSourceT - The annotation typeannotation - The annotation nameAnnotationValue instance@NonNull public <T extends java.lang.annotation.Annotation> java.util.Optional<AnnotationValue<T>> findDeclaredAnnotation(@NonNull java.lang.String annotation)
AnnotationSourcefindDeclaredAnnotation in interface AnnotationSourceT - The annotation typeannotation - The annotation nameAnnotationValue instance@NonNull public <T> OptionalValues<T> getValues(@NonNull java.lang.String annotation, @NonNull java.lang.Class<T> valueType)
AnnotationMetadatagetValues in interface AnnotationMetadataT - Generic typeannotation - The annotation namevalueType - valueTypeOptionalValues@NonNull public <T> java.util.Optional<T> getDefaultValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member, @NonNull Argument<T> requiredType)
AnnotationMetadatagetDefaultValue in interface AnnotationMetadataT - The required generic typeannotation - The annotationmember - The memberrequiredType - The required typepublic DefaultAnnotationMetadata clone()
clone in class java.lang.Objectprotected void addAnnotation(java.lang.String annotation,
java.util.Map<java.lang.CharSequence,java.lang.Object> values)
annotation - The annotationvalues - The valuesprotected void addAnnotation(java.lang.String annotation,
java.util.Map<java.lang.CharSequence,java.lang.Object> values,
java.lang.annotation.RetentionPolicy retentionPolicy)
annotation - The annotationvalues - The valuesretentionPolicy - The retention policyprotected final void addDefaultAnnotationValues(java.lang.String annotation,
java.util.Map<java.lang.CharSequence,java.lang.Object> values)
annotation - The annotationvalues - The values@Internal public static boolean areAnnotationDefaultsRegistered(java.lang.String annotation)
annotation - The annotation name@Internal public static void registerAnnotationDefaults(java.lang.String annotation, java.util.Map<java.lang.String,java.lang.Object> defaultValues)
annotation - The annotation namedefaultValues - The default values@Internal public static void registerAnnotationDefaults(AnnotationClassValue<?> annotation, java.util.Map<java.lang.String,java.lang.Object> defaultValues)
annotation - The annotation namedefaultValues - The default values@Internal public static void registerAnnotationType(AnnotationClassValue<?> annotation)
annotation - The annotationprotected void addRepeatable(java.lang.String annotationName,
AnnotationValue annotationValue)
annotationName - The annotation nameannotationValue - The annotation valueprotected void addRepeatable(java.lang.String annotationName,
AnnotationValue annotationValue,
java.lang.annotation.RetentionPolicy retentionPolicy)
annotationName - The annotation nameannotationValue - The annotation valueretentionPolicy - The retention policyprotected void addRepeatableStereotype(java.util.List<java.lang.String> parents,
java.lang.String stereotype,
AnnotationValue annotationValue)
parents - The parent annotationsstereotype - The annotation nameannotationValue - The annotation valueprotected void addDeclaredRepeatableStereotype(java.util.List<java.lang.String> parents,
java.lang.String stereotype,
AnnotationValue annotationValue)
parents - The parent annotationsstereotype - The annotation nameannotationValue - The annotation valueprotected void addDeclaredRepeatable(java.lang.String annotationName,
AnnotationValue annotationValue)
annotationName - The annotation nameannotationValue - The annotation valueprotected void addDeclaredRepeatable(java.lang.String annotationName,
AnnotationValue annotationValue,
java.lang.annotation.RetentionPolicy retentionPolicy)
annotationName - The annotation nameannotationValue - The annotation valueretentionPolicy - The retention policyprotected final void addStereotype(java.util.List<java.lang.String> parentAnnotations,
java.lang.String stereotype,
java.util.Map<java.lang.CharSequence,java.lang.Object> values)
parentAnnotations - The parent annotationsstereotype - The annotationvalues - The valuesprotected final void addStereotype(java.util.List<java.lang.String> parentAnnotations,
java.lang.String stereotype,
java.util.Map<java.lang.CharSequence,java.lang.Object> values,
java.lang.annotation.RetentionPolicy retentionPolicy)
parentAnnotations - The parent annotationsstereotype - The annotationvalues - The valuesretentionPolicy - The retention policyprotected final void addDeclaredStereotype(java.util.List<java.lang.String> parentAnnotations,
java.lang.String stereotype,
java.util.Map<java.lang.CharSequence,java.lang.Object> values)
parentAnnotations - The parent annotationsstereotype - The annotationvalues - The valuesprotected final void addDeclaredStereotype(java.util.List<java.lang.String> parentAnnotations,
java.lang.String stereotype,
java.util.Map<java.lang.CharSequence,java.lang.Object> values,
java.lang.annotation.RetentionPolicy retentionPolicy)
parentAnnotations - The parent annotationsstereotype - The annotationvalues - The valuesretentionPolicy - The retention policyprotected void addDeclaredAnnotation(java.lang.String annotation,
java.util.Map<java.lang.CharSequence,java.lang.Object> values)
annotation - The annotationvalues - The valuesprotected void addDeclaredAnnotation(java.lang.String annotation,
java.util.Map<java.lang.CharSequence,java.lang.Object> values,
java.lang.annotation.RetentionPolicy retentionPolicy)
annotation - The annotationvalues - The valuesretentionPolicy - The retention policy@Internal public static AnnotationMetadata mutateMember(AnnotationMetadata annotationMetadata, java.lang.String annotationName, java.lang.String member, java.lang.Object value)
Sets a member of the given AnnotationMetadata return a new annotation metadata instance without
mutating the existing.
WARNING: for internal use only be the framework
annotationMetadata - The metadataannotationName - The annotation namemember - The membervalue - The value@Internal public static void contributeDefaults(AnnotationMetadata target, AnnotationMetadata source)
WARNING: for internal use only be the framework
target - The targetsource - The source@Internal public static AnnotationMetadata mutateMember(AnnotationMetadata annotationMetadata, java.lang.String annotationName, java.util.Map<java.lang.CharSequence,java.lang.Object> members)
Sets a member of the given AnnotationMetadata return a new annotation metadata instance without
mutating the existing.
WARNING: for internal use only be the framework
annotationMetadata - The metadataannotationName - The annotation namemembers - The key/value set of members and values@Nullable public <T extends java.lang.annotation.Annotation> T synthesize(@NonNull java.lang.Class<T> annotationClass)
AnnotationSourcesynthesize in interface AnnotationSourceT - The annotation generic typeannotationClass - The annotation class@Nullable public <T extends java.lang.annotation.Annotation> T synthesizeDeclared(@NonNull java.lang.Class<T> annotationClass)
AnnotationSourceThis method ignores inherited annotations. (Returns null if no annotations are directly present on this element.)
synthesizeDeclared in interface AnnotationSourceT - The annotation generic typeannotationClass - The annotation class@NonNull public java.lang.annotation.Annotation[] synthesizeAll()
AnnotationSourcesynthesizeAll in interface AnnotationSource@NonNull public java.lang.annotation.Annotation[] synthesizeDeclared()
AnnotationSourcesynthesizeDeclared in interface AnnotationSourceprotected final void addAnnotationValuesFromData(java.util.List results,
java.util.Map<java.lang.CharSequence,java.lang.Object> values)
results - The resultsvalues - The valuesprotected void addValuesToResults(java.util.List<AnnotationValue> results, AnnotationValue values)
results - The resultsvalues - The values