Class AnnotationMetadataHierarchy
- java.lang.Object
-
- io.micronaut.data.processor.visitors.AnnotationMetadataHierarchy
-
- All Implemented Interfaces:
io.micronaut.core.annotation.AnnotationMetadata
,io.micronaut.core.annotation.AnnotationSource
@Internal public final class AnnotationMetadataHierarchy extends java.lang.Object implements io.micronaut.core.annotation.AnnotationMetadata
Used to represent an annotation metadata hierarchy.- Since:
- 1.0.0
- Author:
- graemerocher
-
-
Constructor Summary
Constructors Constructor Description AnnotationMetadataHierarchy(io.micronaut.core.annotation.AnnotationMetadata... hierarchy)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.Boolean>
booleanValue(java.lang.String annotation, java.lang.String member)
java.util.Optional<java.lang.Class>
classValue(java.lang.String annotation, java.lang.String member)
<T> java.lang.Class<T>[]
classValues(java.lang.String annotation, java.lang.String member)
java.util.OptionalDouble
doubleValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation, java.lang.String member)
java.util.OptionalDouble
doubleValue(java.lang.String annotation, java.lang.String member)
<E extends java.lang.Enum>
java.util.Optional<E>enumValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation, java.lang.String member, java.lang.Class<E> enumType)
java.util.Set<java.lang.String>
getAnnotationNames()
java.util.List<java.lang.String>
getAnnotationNamesByStereotype(java.lang.String stereotype)
<T extends java.lang.annotation.Annotation>
java.util.List<io.micronaut.core.annotation.AnnotationValue<T>>getAnnotationValuesByType(java.lang.Class<T> annotationType)
java.util.Set<java.lang.String>
getDeclaredAnnotationNames()
<T extends java.lang.annotation.Annotation>
java.util.List<io.micronaut.core.annotation.AnnotationValue<T>>getDeclaredAnnotationValuesByType(java.lang.Class<T> annotationType)
<T> java.util.Optional<T>
getDefaultValue(java.lang.String annotation, java.lang.String member, io.micronaut.core.type.Argument<T> requiredType)
java.util.Map<java.lang.String,java.lang.Object>
getDefaultValues(java.lang.String annotation)
<T> io.micronaut.core.value.OptionalValues<T>
getValues(java.lang.String annotation, java.lang.Class<T> valueType)
boolean
hasAnnotation(java.lang.String annotation)
boolean
hasDeclaredAnnotation(java.lang.String annotation)
boolean
hasDeclaredStereotype(java.lang.String annotation)
boolean
hasStereotype(java.lang.String annotation)
java.util.OptionalInt
intValue(java.lang.String annotation, java.lang.String member)
boolean
isTrue(java.lang.String annotation, java.lang.String member)
java.util.OptionalLong
longValue(java.lang.String annotation, java.lang.String member)
java.util.Optional<java.lang.String>
stringValue(java.lang.String annotation, java.lang.String member)
java.lang.String[]
stringValues(java.lang.Class<? extends java.lang.annotation.Annotation> annotation, java.lang.String member)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadata
booleanValue, booleanValue, booleanValue, classValue, classValue, classValue, classValues, classValues, classValues, doubleValue, enumValue, enumValue, enumValue, enumValues, enumValues, enumValues, enumValues, findAnnotation, findDeclaredAnnotation, findRepeatableAnnotation, findRepeatableAnnotation, getAnnotationNameByStereotype, getAnnotationNameByStereotype, getAnnotationNamesByStereotype, getAnnotationType, getAnnotationType, getAnnotationTypeByStereotype, getAnnotationTypeByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getAnnotationValuesByName, getAnnotationValuesByStereotype, getDeclaredAnnotationNameByStereotype, getDeclaredAnnotationNamesByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationValuesByName, getDeclaredMetadata, getDeclaredStereotypeAnnotationNames, getDefaultValue, getDefaultValue, getDefaultValue, getStereotypeAnnotationNames, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValues, getValues, hasAnnotation, hasDeclaredAnnotation, hasDeclaredStereotype, hasDeclaredStereotype, hasDeclaredStereotype, hasPropertyExpressions, hasSimpleAnnotation, hasSimpleDeclaredAnnotation, hasStereotype, hasStereotype, hasStereotype, intValue, intValue, isAnnotationPresent, isAnnotationPresent, isDeclaredAnnotationPresent, isDeclaredAnnotationPresent, isEmpty, isFalse, isFalse, isPresent, isPresent, isRepeatableAnnotation, isRepeatableAnnotation, isTrue, longValue, stringValue, stringValue, stringValue, stringValues, stringValues, stringValues
-
Methods inherited from interface io.micronaut.core.annotation.AnnotationSource
findAnnotation, findDeclaredAnnotation, getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, synthesize, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
-
-
-
-
Method Detail
-
doubleValue
@NonNull public java.util.OptionalDouble doubleValue(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, @NonNull java.lang.String member)
- Specified by:
doubleValue
in interfaceio.micronaut.core.annotation.AnnotationMetadata
-
stringValues
@NonNull public java.lang.String[] stringValues(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, @NonNull java.lang.String member)
- Specified by:
stringValues
in interfaceio.micronaut.core.annotation.AnnotationMetadata
-
booleanValue
public java.util.Optional<java.lang.Boolean> booleanValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member)
- Specified by:
booleanValue
in interfaceio.micronaut.core.annotation.AnnotationMetadata
-
isTrue
public boolean isTrue(@NonNull java.lang.String annotation, @NonNull java.lang.String member)
- Specified by:
isTrue
in interfaceio.micronaut.core.annotation.AnnotationMetadata
-
longValue
public java.util.OptionalLong longValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member)
- Specified by:
longValue
in interfaceio.micronaut.core.annotation.AnnotationMetadata
-
stringValue
public java.util.Optional<java.lang.String> stringValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member)
- Specified by:
stringValue
in interfaceio.micronaut.core.annotation.AnnotationMetadata
-
intValue
public java.util.OptionalInt intValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member)
- Specified by:
intValue
in interfaceio.micronaut.core.annotation.AnnotationMetadata
-
doubleValue
@NonNull public java.util.OptionalDouble doubleValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member)
- Specified by:
doubleValue
in interfaceio.micronaut.core.annotation.AnnotationMetadata
-
enumValue
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)
- Specified by:
enumValue
in interfaceio.micronaut.core.annotation.AnnotationMetadata
-
classValues
@NonNull public <T> java.lang.Class<T>[] classValues(@NonNull java.lang.String annotation, @NonNull java.lang.String member)
- Specified by:
classValues
in interfaceio.micronaut.core.annotation.AnnotationMetadata
-
classValue
public java.util.Optional<java.lang.Class> classValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member)
- Specified by:
classValue
in interfaceio.micronaut.core.annotation.AnnotationMetadata
-
getAnnotationNamesByStereotype
@NonNull public java.util.List<java.lang.String> getAnnotationNamesByStereotype(@Nullable java.lang.String stereotype)
- Specified by:
getAnnotationNamesByStereotype
in interfaceio.micronaut.core.annotation.AnnotationMetadata
-
getDeclaredAnnotationNames
@NonNull public java.util.Set<java.lang.String> getDeclaredAnnotationNames()
- Specified by:
getDeclaredAnnotationNames
in interfaceio.micronaut.core.annotation.AnnotationMetadata
-
getAnnotationNames
@NonNull public java.util.Set<java.lang.String> getAnnotationNames()
- Specified by:
getAnnotationNames
in interfaceio.micronaut.core.annotation.AnnotationMetadata
-
getValues
@NonNull public <T> io.micronaut.core.value.OptionalValues<T> getValues(@NonNull java.lang.String annotation, @NonNull java.lang.Class<T> valueType)
- Specified by:
getValues
in interfaceio.micronaut.core.annotation.AnnotationMetadata
-
getDefaultValue
public <T> java.util.Optional<T> getDefaultValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member, @NonNull io.micronaut.core.type.Argument<T> requiredType)
- Specified by:
getDefaultValue
in interfaceio.micronaut.core.annotation.AnnotationMetadata
-
getAnnotationValuesByType
@NonNull public <T extends java.lang.annotation.Annotation> java.util.List<io.micronaut.core.annotation.AnnotationValue<T>> getAnnotationValuesByType(@NonNull java.lang.Class<T> annotationType)
- Specified by:
getAnnotationValuesByType
in interfaceio.micronaut.core.annotation.AnnotationMetadata
-
getDeclaredAnnotationValuesByType
@NonNull public <T extends java.lang.annotation.Annotation> java.util.List<io.micronaut.core.annotation.AnnotationValue<T>> getDeclaredAnnotationValuesByType(@NonNull java.lang.Class<T> annotationType)
- Specified by:
getDeclaredAnnotationValuesByType
in interfaceio.micronaut.core.annotation.AnnotationMetadata
-
hasDeclaredAnnotation
public boolean hasDeclaredAnnotation(@Nullable java.lang.String annotation)
- Specified by:
hasDeclaredAnnotation
in interfaceio.micronaut.core.annotation.AnnotationMetadata
-
hasAnnotation
public boolean hasAnnotation(@Nullable java.lang.String annotation)
- Specified by:
hasAnnotation
in interfaceio.micronaut.core.annotation.AnnotationMetadata
-
hasStereotype
public boolean hasStereotype(@Nullable java.lang.String annotation)
- Specified by:
hasStereotype
in interfaceio.micronaut.core.annotation.AnnotationMetadata
-
hasDeclaredStereotype
public boolean hasDeclaredStereotype(@Nullable java.lang.String annotation)
- Specified by:
hasDeclaredStereotype
in interfaceio.micronaut.core.annotation.AnnotationMetadata
-
getDefaultValues
@NonNull public java.util.Map<java.lang.String,java.lang.Object> getDefaultValues(@NonNull java.lang.String annotation)
- Specified by:
getDefaultValues
in interfaceio.micronaut.core.annotation.AnnotationMetadata
-
-