Class DefaultAnnotationMetadata
java.lang.Object
io.micronaut.inject.annotation.DefaultAnnotationMetadata
- All Implemented Interfaces:
io.micronaut.core.annotation.AnnotationMetadata, io.micronaut.core.annotation.AnnotationSource, Cloneable
- Direct Known Subclasses:
MutableAnnotationMetadata
@Internal
public class DefaultAnnotationMetadata
extends Object
implements io.micronaut.core.annotation.AnnotationMetadata, Cloneable
Default implementation of
AnnotationMetadata.
NOTE: Although required to be public This is an internal class and should not be referenced directly in user code
- Since:
- 1.0
-
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
ConstructorsModifierConstructorDescriptionprotectedConstructs empty annotation metadata.DefaultAnnotationMetadata(@Nullable Map<String, Map<CharSequence, Object>> declaredAnnotations, @Nullable Map<String, Map<CharSequence, Object>> declaredStereotypes, @Nullable Map<String, Map<CharSequence, Object>> allStereotypes, @Nullable Map<String, Map<CharSequence, Object>> allAnnotations, @Nullable Map<String, List<String>> annotationsByStereotype) This constructor is designed to be used by compile time produced subclasses.DefaultAnnotationMetadata(@Nullable Map<String, Map<CharSequence, Object>> declaredAnnotations, @Nullable Map<String, Map<CharSequence, Object>> declaredStereotypes, @Nullable Map<String, Map<CharSequence, Object>> allStereotypes, @Nullable Map<String, Map<CharSequence, Object>> allAnnotations, @Nullable Map<String, List<String>> annotationsByStereotype, boolean hasPropertyExpressions) This constructor is designed to be used by compile time produced subclasses.DefaultAnnotationMetadata(@Nullable Map<String, Map<CharSequence, Object>> declaredAnnotations, @Nullable Map<String, Map<CharSequence, Object>> declaredStereotypes, @Nullable Map<String, Map<CharSequence, Object>> allStereotypes, @Nullable Map<String, Map<CharSequence, Object>> allAnnotations, @Nullable Map<String, List<String>> annotationsByStereotype, boolean hasPropertyExpressions, boolean hasEvaluatedExpressions) This constructor is designed to be used by compile time produced subclasses. -
Method Summary
Modifier and TypeMethodDescriptionbooleanValue(Class<? extends Annotation> annotation, String member) booleanValue(Class<? extends Annotation> annotation, String member, @Nullable Function<Object, Object> valueMapper) Retrieve the boolean value and optionally map its value.booleanValue(String annotation, String member) Retrieve the boolean value and optionally map its value.classValue(Class<? extends Annotation> annotation, String member) classValue(Class<? extends Annotation> annotation, String member, @Nullable Function<Object, Object> valueMapper) Retrieve the class value and optionally map its value.classValue(String annotation, String member) Retrieve the class value and optionally map its value.<T> Class<T>[]classValues(Class<? extends Annotation> annotation, String member) <T> Class<T>[]classValues(String annotation, String member) clone()protected final <K,V> Map <K, V> cloneMapOfListValue(Map<K, List<V>> toClone) cloneMapOfMapValue(Map<K, Map<X, Y>> toClone) io.micronaut.core.annotation.AnnotationMetadatadoubleValue(Class<? extends Annotation> annotation, String member) doubleValue(Class<? extends Annotation> annotation, String member, @Nullable Function<Object, Object> valueMapper) Retrieve the double value and optionally map its value.doubleValue(String annotation, String member) Retrieve the double value and optionally map its value.enumValue(Class<? extends Annotation> annotation, Class<E> enumType) enumValue(Class<? extends Annotation> annotation, String member, Class<E> enumType) enumValue(Class<? extends Annotation> annotation, String member, Class<E> enumType, @Nullable Function<Object, Object> valueMapper) Retrieve the class value and optionally map its value.enumValue(String annotation, String member, Class<E> enumType, @Nullable Function<Object, Object> valueMapper) Retrieve the class value and optionally map its value.<E extends Enum<E>>
E[]enumValues(Class<? extends Annotation> annotation, Class<E> enumType) <E extends Enum<E>>
E[]enumValues(Class<? extends Annotation> annotation, String member, Class<E> enumType) <E extends Enum<E>>
E[]enumValues(Class<? extends Annotation> annotation, String member, Class<E> enumType, @Nullable Function<Object, Object> valueMapper) <E extends Enum<E>>
E[]enumValues(String annotation, Class<E> enumType) <E extends Enum<E>>
E[]enumValues(String annotation, String member, Class<E> enumType) <E extends Enum<E>>
E[]enumValues(String annotation, String member, Class<E> enumType, @Nullable Function<Object, Object> valueMapper) <T extends Annotation>
Optional<io.micronaut.core.annotation.AnnotationValue<T>> findAnnotation(String annotation) <T extends Annotation>
Optional<io.micronaut.core.annotation.AnnotationValue<T>> findDeclaredAnnotation(String annotation) findRepeatableAnnotation(Class<? extends Annotation> annotation) findRepeatableAnnotation(String annotation) protected @Nullable StringfindRepeatableAnnotationContainerInternal(String annotation) Find annotation's repeatable container.getAnnotationNameByStereotype(@Nullable String stereotype) getAnnotationNamesByStereotype(@Nullable String stereotype) Optional<Class<? extends Annotation>> getAnnotationType(String name) Optional<Class<? extends Annotation>> getAnnotationType(String name, ClassLoader classLoader) Optional<Class<? extends Annotation>> getAnnotationTypeByStereotype(@Nullable String stereotype) <T extends Annotation>
List<io.micronaut.core.annotation.AnnotationValue<T>> getAnnotationValuesByName(String annotationType) <T extends Annotation>
List<io.micronaut.core.annotation.AnnotationValue<T>> getAnnotationValuesByStereotype(@Nullable String stereotype) <T extends Annotation>
List<io.micronaut.core.annotation.AnnotationValue<T>> getAnnotationValuesByType(@Nullable Class<T> annotationType) getDeclaredAnnotationNamesByStereotype(@Nullable String stereotype) <T extends Annotation>
List<io.micronaut.core.annotation.AnnotationValue<T>> getDeclaredAnnotationValuesByName(String annotationType) <T extends Annotation>
List<io.micronaut.core.annotation.AnnotationValue<T>> getDeclaredAnnotationValuesByType(Class<T> annotationType) io.micronaut.core.annotation.AnnotationMetadata<T> Optional<T> getDefaultValue(String annotation, String member, io.micronaut.core.type.Argument<T> requiredType) <T> Optional<T> getDefaultValue(String annotation, String member, Class<T> requiredType) getDefaultValues(String annotation) <T> Optional<T> getValue(Class<? extends Annotation> annotation, String member, Class<T> requiredType) <T> Optional<T> <T> Optional<T> getValue(String annotation, String member, io.micronaut.core.type.Argument<T> requiredType, @Nullable Function<Object, Object> valueMapper) Resolves the given value performing type conversion as necessary.<T> io.micronaut.core.value.OptionalValues<T> booleanhasAnnotation(@Nullable String annotation) booleanhasDeclaredAnnotation(@Nullable Class<? extends Annotation> annotation) booleanhasDeclaredAnnotation(@Nullable String annotation) booleanhasDeclaredStereotype(@Nullable String annotation) booleanbooleanbooleanhasStereotype(@Nullable Class<? extends Annotation> annotation) booleanhasStereotype(@Nullable String annotation) intValue(Class<? extends Annotation> annotation, String member) intValue(Class<? extends Annotation> annotation, String member, @Nullable Function<Object, Object> valueMapper) Retrieve the int value and optionally map its value.Retrieve the int value and optionally map its value.booleanisEmpty()booleanbooleanbooleanisRepeatableAnnotation(Class<? extends Annotation> annotation) booleanisRepeatableAnnotation(String annotation) booleanisTrue(Class<? extends Annotation> annotation, String member) booleanisTrue(Class<? extends Annotation> annotation, String member, @Nullable Function<Object, Object> valueMapper) Retrieve the boolean value and optionally map its value.booleanbooleanRetrieve the boolean value and optionally map its value.longValue(Class<? extends Annotation> annotation, String member) longValue(Class<? extends Annotation> annotation, String member, @Nullable Function<Object, Object> valueMapper) Retrieve the long value and optionally map its value.Retrieve the long value and optionally map its value.protected <T extends Annotation>
io.micronaut.core.annotation.AnnotationValue<T> newAnnotationValue(String annotationType, Map<CharSequence, Object> values) static voidregisterAnnotationDefaults(io.micronaut.core.annotation.AnnotationClassValue<?> annotation, Map<CharSequence, Object> defaultValues) Registers annotation default values.static voidregisterAnnotationDefaults(String annotation, Map<CharSequence, Object> defaultValues) Registers annotation default values.static voidregisterAnnotationType(io.micronaut.core.annotation.AnnotationClassValue<?> annotation) Registers annotation default values.static voidregisterRepeatableAnnotations(Map<String, String> repeatableAnnotations) Registers repeatable annotations.stringValue(Class<? extends Annotation> annotation, String member) stringValue(Class<? extends Annotation> annotation, String member, @Nullable Function<Object, Object> valueMapper) Retrieve the string value and optionally map its value.stringValue(String annotation, String member) Retrieve the string value and optionally map its value.String[]stringValues(Class<? extends Annotation> annotation, String member) String[]stringValues(Class<? extends Annotation> annotation, String member, @Nullable Function<Object, Object> valueMapper) Retrieve the string value and optionally map its value.String[]stringValues(String annotation, String member) String[]Retrieve the string value and optionally map its value.<T extends Annotation>
@Nullable Tsynthesize(Class<T> annotationClass) <T extends Annotation>
@Nullable Tsynthesize(Class<T> annotationClass, String sourceAnnotation) <T extends Annotation>
T[]synthesizeAnnotationsByType(Class<T> annotationClass) <T extends Annotation>
@Nullable TsynthesizeDeclared(Class<T> annotationClass) <T extends Annotation>
@Nullable TsynthesizeDeclared(Class<T> annotationClass, String sourceAnnotation) <T extends Annotation>
T[]synthesizeDeclaredAnnotationsByType(Class<T> annotationClass) Methods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.annotation.AnnotationMetadata
booleanValue, booleanValue, classValue, classValue, classValues, classValues, doubleValue, enumValuesSet, enumValuesSet, findAnnotation, findDeclaredAnnotation, getAnnotationNameByStereotype, getAnnotationNamesByStereotype, getAnnotationTypeByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getDeclaredAnnotationNameByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationTypeByStereotype, getDefaultValue, getDefaultValue, getTargetAnnotationMetadata, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValues, hasAnnotation, hasDeclaredStereotype, hasDeclaredStereotype, hasDeclaredStereotype, hasSimpleAnnotation, hasSimpleDeclaredAnnotation, hasStereotype, hasStereotype, hasStereotypeNonRepeating, intValue, isAnnotationPresent, isAnnotationPresent, isDeclaredAnnotationPresent, isDeclaredAnnotationPresent, isFalse, isPresent, stringValue, stringValue, stringValues, stringValuesMethods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, synthesize, synthesize, synthesizeAll, synthesizeDeclared, synthesizeDeclared, synthesizeDeclared
-
Constructor Details
-
DefaultAnnotationMetadata
@Internal protected DefaultAnnotationMetadata()Constructs empty annotation metadata. -
DefaultAnnotationMetadata
@Internal public DefaultAnnotationMetadata(@Nullable Map<String, Map<CharSequence, Object>> declaredAnnotations, @Nullable Map<String, Map<CharSequence, Object>> declaredStereotypes, @Nullable Map<String, Map<CharSequence, Object>> allStereotypes, @Nullable Map<String, Map<CharSequence, Object>> allAnnotations, @Nullable Map<String, List<String>> annotationsByStereotype) This constructor is designed to be used by compile time produced subclasses.- Parameters:
declaredAnnotations- The directly declared annotationsdeclaredStereotypes- The directly declared stereotypesallStereotypes- All stereotypesallAnnotations- All annotationsannotationsByStereotype- The annotations by stereotype
-
DefaultAnnotationMetadata
@Internal public DefaultAnnotationMetadata(@Nullable Map<String, Map<CharSequence, Object>> declaredAnnotations, @Nullable Map<String, Map<CharSequence, Object>> declaredStereotypes, @Nullable Map<String, Map<CharSequence, Object>> allStereotypes, @Nullable Map<String, Map<CharSequence, Object>> allAnnotations, @Nullable Map<String, List<String>> annotationsByStereotype, boolean hasPropertyExpressions) This constructor is designed to be used by compile time produced subclasses.- Parameters:
declaredAnnotations- The directly declared annotationsdeclaredStereotypes- The directly declared stereotypesallStereotypes- All stereotypesallAnnotations- All annotationsannotationsByStereotype- The annotations by stereotypehasPropertyExpressions- Whether property expressions exist in the metadata
-
DefaultAnnotationMetadata
@Internal public DefaultAnnotationMetadata(@Nullable Map<String, Map<CharSequence, Object>> declaredAnnotations, @Nullable Map<String, Map<CharSequence, Object>> declaredStereotypes, @Nullable Map<String, Map<CharSequence, Object>> allStereotypes, @Nullable Map<String, Map<CharSequence, Object>> allAnnotations, @Nullable Map<String, List<String>> annotationsByStereotype, boolean hasPropertyExpressions, boolean hasEvaluatedExpressions) This constructor is designed to be used by compile time produced subclasses.- Parameters:
declaredAnnotations- The directly declared annotationsdeclaredStereotypes- The directly declared stereotypesallStereotypes- All stereotypesallAnnotations- All annotationsannotationsByStereotype- The annotations by stereotypehasPropertyExpressions- Whether property expressions exist in the metadatahasEvaluatedExpressions- Whether evaluated expressions exist in the metadata
-
-
Method Details
-
getDeclaredMetadata
public io.micronaut.core.annotation.AnnotationMetadata getDeclaredMetadata()- Specified by:
getDeclaredMetadatain interfaceio.micronaut.core.annotation.AnnotationMetadata
-
hasPropertyExpressions
public boolean hasPropertyExpressions()- Specified by:
hasPropertyExpressionsin interfaceio.micronaut.core.annotation.AnnotationMetadata
-
hasEvaluatedExpressions
public boolean hasEvaluatedExpressions()- Specified by:
hasEvaluatedExpressionsin interfaceio.micronaut.core.annotation.AnnotationMetadata
-
getDefaultValues
- Specified by:
getDefaultValuesin interfaceio.micronaut.core.annotation.AnnotationMetadata
-
isPresent
-
enumValue
-
enumValue
-
enumValue
public <E extends Enum<E>> Optional<E> enumValue(Class<? extends Annotation> annotation, Class<E> enumType) - Specified by:
enumValuein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
enumValue
-
enumValue
@Internal public <E extends Enum<E>> Optional<E> enumValue(Class<? extends Annotation> annotation, String member, Class<E> enumType, @Nullable Function<Object, Object> valueMapper) Retrieve the class value and optionally map its value.- Type Parameters:
E- The enum type- Parameters:
annotation- The annotationmember- The memberenumType- The enum typevalueMapper- The value mapper- Returns:
- The class value
-
enumValues
-
enumValues
-
enumValues
public <E extends Enum<E>> E[] enumValues(Class<? extends Annotation> annotation, Class<E> enumType) - Specified by:
enumValuesin interfaceio.micronaut.core.annotation.AnnotationMetadata
-
enumValues
public <E extends Enum<E>> E[] enumValues(Class<? extends Annotation> annotation, String member, Class<E> enumType) - Specified by:
enumValuesin interfaceio.micronaut.core.annotation.AnnotationMetadata
-
enumValues
-
enumValues
-
enumValue
@Internal public <E extends Enum<E>> Optional<E> enumValue(String annotation, String member, Class<E> enumType, @Nullable Function<Object, Object> valueMapper) Retrieve the class value and optionally map its value.- Type Parameters:
E- The enum type- Parameters:
annotation- The annotationmember- The memberenumType- The enum typevalueMapper- The value mapper- Returns:
- The class value
-
classValues
-
classValues
- Specified by:
classValuesin interfaceio.micronaut.core.annotation.AnnotationMetadata
-
classValue
- Specified by:
classValuein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
classValue
public Optional<Class> classValue(Class<? extends Annotation> annotation, String member, @Nullable Function<Object, Object> valueMapper) Retrieve the class value and optionally map its value.- Parameters:
annotation- The annotationmember- The membervalueMapper- The value mapper- Returns:
- The class value
-
classValue
-
classValue
-
intValue
- Specified by:
intValuein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
intValue
- Specified by:
intValuein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
intValue
@Internal public OptionalInt intValue(Class<? extends Annotation> annotation, String member, @Nullable Function<Object, Object> valueMapper) Retrieve the int value and optionally map its value.- Parameters:
annotation- The annotationmember- The membervalueMapper- The value mapper- Returns:
- The int value
-
booleanValue
-
booleanValue
- Specified by:
booleanValuein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
booleanValue
public Optional<Boolean> booleanValue(Class<? extends Annotation> annotation, String member, @Nullable Function<Object, Object> valueMapper) Retrieve the boolean value and optionally map its value.- Parameters:
annotation- The annotationmember- The membervalueMapper- The value mapper- Returns:
- The boolean value
-
booleanValue
-
longValue
- Specified by:
longValuein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
longValue
- Specified by:
longValuein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
longValue
@Internal public OptionalLong longValue(Class<? extends Annotation> annotation, String member, @Nullable Function<Object, Object> valueMapper) Retrieve the long value and optionally map its value.- Parameters:
annotation- The annotationmember- The membervalueMapper- The value mapper- Returns:
- The long value
-
longValue
-
intValue
-
stringValue
- Specified by:
stringValuein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
stringValue
public Optional<String> stringValue(Class<? extends Annotation> annotation, String member, @Nullable Function<Object, Object> valueMapper) Retrieve the string value and optionally map its value.- Parameters:
annotation- The annotationmember- The membervalueMapper- The value mapper- Returns:
- The int value
-
stringValues
- Specified by:
stringValuesin interfaceio.micronaut.core.annotation.AnnotationMetadata
-
stringValues
-
stringValues
public String[] stringValues(Class<? extends Annotation> annotation, String member, @Nullable Function<Object, Object> valueMapper) Retrieve the string value and optionally map its value.- Parameters:
annotation- The annotationmember- The membervalueMapper- The value mapper- Returns:
- The int value
-
stringValues
-
stringValue
-
stringValue
-
isTrue
- Specified by:
isTruein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
isTrue
-
isTrue
-
isTrue
-
isFalse
-
doubleValue
- Specified by:
doubleValuein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
doubleValue
- Specified by:
doubleValuein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
doubleValue
@Internal public OptionalDouble doubleValue(Class<? extends Annotation> annotation, String member, @Nullable Function<Object, Object> valueMapper) Retrieve the double value and optionally map its value.- Parameters:
annotation- The annotationmember- The membervalueMapper- The value mapper- Returns:
- The double value
-
doubleValue
-
getValue
public <T> Optional<T> getValue(Class<? extends Annotation> annotation, String member, Class<T> requiredType) - Specified by:
getValuein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
getValue
-
getValue
public <T> Optional<T> getValue(String annotation, String member, io.micronaut.core.type.Argument<T> requiredType, @Nullable Function<Object, Object> valueMapper) Resolves the given value performing type conversion as necessary.- Type Parameters:
T- The generic type- Parameters:
annotation- The annotationmember- The memberrequiredType- The required typevalueMapper- The value mapper- Returns:
- The resolved value
-
getDefaultValue
-
getAnnotationValuesByType
public <T extends Annotation> List<io.micronaut.core.annotation.AnnotationValue<T>> getAnnotationValuesByType(@Nullable Class<T> annotationType) - Specified by:
getAnnotationValuesByTypein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
getAnnotationValuesByName
public <T extends Annotation> List<io.micronaut.core.annotation.AnnotationValue<T>> getAnnotationValuesByName(String annotationType) - Specified by:
getAnnotationValuesByNamein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
newAnnotationValue
protected <T extends Annotation> io.micronaut.core.annotation.AnnotationValue<T> newAnnotationValue(String annotationType, Map<CharSequence, Object> values) -
getDeclaredAnnotationValuesByType
public <T extends Annotation> List<io.micronaut.core.annotation.AnnotationValue<T>> getDeclaredAnnotationValuesByType(Class<T> annotationType) - Specified by:
getDeclaredAnnotationValuesByTypein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
getDeclaredAnnotationValuesByName
public <T extends Annotation> List<io.micronaut.core.annotation.AnnotationValue<T>> getDeclaredAnnotationValuesByName(String annotationType) - Specified by:
getDeclaredAnnotationValuesByNamein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
synthesizeAnnotationsByType
- Specified by:
synthesizeAnnotationsByTypein interfaceio.micronaut.core.annotation.AnnotationSource
-
synthesizeDeclaredAnnotationsByType
- Specified by:
synthesizeDeclaredAnnotationsByTypein interfaceio.micronaut.core.annotation.AnnotationSource
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceio.micronaut.core.annotation.AnnotationMetadata
-
hasDeclaredAnnotation
- Specified by:
hasDeclaredAnnotationin interfaceio.micronaut.core.annotation.AnnotationMetadata
-
hasAnnotation
- Specified by:
hasAnnotationin interfaceio.micronaut.core.annotation.AnnotationMetadata
-
hasStereotype
- Specified by:
hasStereotypein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
hasStereotype
- Specified by:
hasStereotypein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
hasDeclaredStereotype
- Specified by:
hasDeclaredStereotypein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
hasDeclaredAnnotation
- Specified by:
hasDeclaredAnnotationin interfaceio.micronaut.core.annotation.AnnotationMetadata
-
getAnnotationTypeByStereotype
public Optional<Class<? extends Annotation>> getAnnotationTypeByStereotype(@Nullable String stereotype) - Specified by:
getAnnotationTypeByStereotypein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
getAnnotationNameByStereotype
-
getAnnotationNamesByStereotype
-
getAnnotationValuesByStereotype
public <T extends Annotation> List<io.micronaut.core.annotation.AnnotationValue<T>> getAnnotationValuesByStereotype(@Nullable String stereotype) - Specified by:
getAnnotationValuesByStereotypein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
getAnnotationNames
-
getStereotypeAnnotationNames
-
getDeclaredStereotypeAnnotationNames
-
getDeclaredAnnotationNames
-
getDeclaredAnnotationNamesByStereotype
-
getAnnotationType
- Specified by:
getAnnotationTypein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
getAnnotationType
public Optional<Class<? extends Annotation>> getAnnotationType(String name, ClassLoader classLoader) - Specified by:
getAnnotationTypein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
findAnnotation
public <T extends Annotation> Optional<io.micronaut.core.annotation.AnnotationValue<T>> findAnnotation(String annotation) - Specified by:
findAnnotationin interfaceio.micronaut.core.annotation.AnnotationSource
-
findDeclaredAnnotation
public <T extends Annotation> Optional<io.micronaut.core.annotation.AnnotationValue<T>> findDeclaredAnnotation(String annotation) - Specified by:
findDeclaredAnnotationin interfaceio.micronaut.core.annotation.AnnotationSource
-
getValues
-
getValues
- Specified by:
getValuesin interfaceio.micronaut.core.annotation.AnnotationMetadata
-
getDefaultValue
-
isRepeatableAnnotation
- Specified by:
isRepeatableAnnotationin interfaceio.micronaut.core.annotation.AnnotationMetadata
-
isRepeatableAnnotation
- Specified by:
isRepeatableAnnotationin interfaceio.micronaut.core.annotation.AnnotationMetadata
-
findRepeatableAnnotation
- Specified by:
findRepeatableAnnotationin interfaceio.micronaut.core.annotation.AnnotationMetadata
-
findRepeatableAnnotation
-
copyAnnotationMetadata
public io.micronaut.core.annotation.AnnotationMetadata copyAnnotationMetadata()- Specified by:
copyAnnotationMetadatain interfaceio.micronaut.core.annotation.AnnotationMetadata
-
clone
-
cloneMapOfMapValue
-
cloneMapOfListValue
-
cloneMap
-
registerAnnotationDefaults
@Internal public static void registerAnnotationDefaults(String annotation, Map<CharSequence, Object> defaultValues) Registers annotation default values. Used by generated byte code. DO NOT REMOVE.- Parameters:
annotation- The annotation namedefaultValues- The default values
-
registerAnnotationDefaults
@Internal public static void registerAnnotationDefaults(io.micronaut.core.annotation.AnnotationClassValue<?> annotation, Map<CharSequence, Object> defaultValues) Registers annotation default values. Used by generated byte code. DO NOT REMOVE.- Parameters:
annotation- The annotation namedefaultValues- The default values
-
registerAnnotationType
@Internal public static void registerAnnotationType(io.micronaut.core.annotation.AnnotationClassValue<?> annotation) Registers annotation default values. Used by generated byte code. DO NOT REMOVE.- Parameters:
annotation- The annotation
-
registerRepeatableAnnotations
-
findRepeatableAnnotationContainerInternal
-
synthesize
- Specified by:
synthesizein interfaceio.micronaut.core.annotation.AnnotationSource
-
synthesize
public <T extends Annotation> @Nullable T synthesize(Class<T> annotationClass, String sourceAnnotation) - Specified by:
synthesizein interfaceio.micronaut.core.annotation.AnnotationSource
-
synthesizeDeclared
public <T extends Annotation> @Nullable T synthesizeDeclared(Class<T> annotationClass, String sourceAnnotation) - Specified by:
synthesizeDeclaredin interfaceio.micronaut.core.annotation.AnnotationSource
-
synthesizeDeclared
- Specified by:
synthesizeDeclaredin interfaceio.micronaut.core.annotation.AnnotationSource
-
synthesizeAll
- Specified by:
synthesizeAllin interfaceio.micronaut.core.annotation.AnnotationSource
-
synthesizeDeclared
- Specified by:
synthesizeDeclaredin interfaceio.micronaut.core.annotation.AnnotationSource
-