@Internal
public final class AnnotationMetadataHierarchy
extends java.lang.Object
implements io.micronaut.core.annotation.AnnotationMetadata
Constructor and Description |
---|
AnnotationMetadataHierarchy(io.micronaut.core.annotation.AnnotationMetadata... hierarchy)
Default constructor.
|
Modifier and Type | Method and 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> |
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> |
getAnnotationValuesByType(java.lang.Class<T> annotationType) |
java.util.Set<java.lang.String> |
getDeclaredAnnotationNames() |
<T extends java.lang.annotation.Annotation> |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
booleanValue, booleanValue, booleanValue, classValue, classValue, classValue, classValues, classValues, classValues, doubleValue, enumValue, enumValue, enumValue, enumValues, enumValues, enumValues, enumValues, findAnnotation, findDeclaredAnnotation, getAnnotationNameByStereotype, getAnnotationNameByStereotype, getAnnotationNamesByStereotype, getAnnotationType, getAnnotationType, getAnnotationTypeByStereotype, getAnnotationTypeByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getDeclaredAnnotationNameByStereotype, getDeclaredAnnotationNamesByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredMetadata, getDefaultValue, getDefaultValue, getDefaultValue, 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, isTrue, longValue, stringValue, stringValue, stringValue, stringValues, stringValues, stringValues
findAnnotation, findDeclaredAnnotation, getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, synthesize, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
public AnnotationMetadataHierarchy(io.micronaut.core.annotation.AnnotationMetadata... hierarchy)
hierarchy
- The annotation hierarchy@NonNull public java.util.OptionalDouble doubleValue(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, @NonNull java.lang.String member)
doubleValue
in interface io.micronaut.core.annotation.AnnotationMetadata
@NonNull public java.lang.String[] stringValues(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, @NonNull java.lang.String member)
stringValues
in interface io.micronaut.core.annotation.AnnotationMetadata
public java.util.Optional<java.lang.Boolean> booleanValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member)
booleanValue
in interface io.micronaut.core.annotation.AnnotationMetadata
public boolean isTrue(@NonNull java.lang.String annotation, @NonNull java.lang.String member)
isTrue
in interface io.micronaut.core.annotation.AnnotationMetadata
public java.util.OptionalLong longValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member)
longValue
in interface io.micronaut.core.annotation.AnnotationMetadata
public java.util.Optional<java.lang.String> stringValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member)
stringValue
in interface io.micronaut.core.annotation.AnnotationMetadata
public java.util.OptionalInt intValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member)
intValue
in interface io.micronaut.core.annotation.AnnotationMetadata
@NonNull public java.util.OptionalDouble doubleValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member)
doubleValue
in interface io.micronaut.core.annotation.AnnotationMetadata
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)
enumValue
in interface io.micronaut.core.annotation.AnnotationMetadata
@NonNull public <T> java.lang.Class<T>[] classValues(@NonNull java.lang.String annotation, @NonNull java.lang.String member)
classValues
in interface io.micronaut.core.annotation.AnnotationMetadata
public java.util.Optional<java.lang.Class> classValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member)
classValue
in interface io.micronaut.core.annotation.AnnotationMetadata
@NonNull public java.util.List<java.lang.String> getAnnotationNamesByStereotype(@Nullable java.lang.String stereotype)
getAnnotationNamesByStereotype
in interface io.micronaut.core.annotation.AnnotationMetadata
@NonNull public java.util.Set<java.lang.String> getDeclaredAnnotationNames()
getDeclaredAnnotationNames
in interface io.micronaut.core.annotation.AnnotationMetadata
@NonNull public java.util.Set<java.lang.String> getAnnotationNames()
getAnnotationNames
in interface io.micronaut.core.annotation.AnnotationMetadata
@NonNull public <T> io.micronaut.core.value.OptionalValues<T> getValues(@NonNull java.lang.String annotation, @NonNull java.lang.Class<T> valueType)
getValues
in interface io.micronaut.core.annotation.AnnotationMetadata
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)
getDefaultValue
in interface io.micronaut.core.annotation.AnnotationMetadata
@NonNull public <T extends java.lang.annotation.Annotation> java.util.List<io.micronaut.core.annotation.AnnotationValue<T>> getAnnotationValuesByType(@NonNull java.lang.Class<T> annotationType)
getAnnotationValuesByType
in interface io.micronaut.core.annotation.AnnotationMetadata
@NonNull public <T extends java.lang.annotation.Annotation> java.util.List<io.micronaut.core.annotation.AnnotationValue<T>> getDeclaredAnnotationValuesByType(@NonNull java.lang.Class<T> annotationType)
getDeclaredAnnotationValuesByType
in interface io.micronaut.core.annotation.AnnotationMetadata
public boolean hasDeclaredAnnotation(@Nullable java.lang.String annotation)
hasDeclaredAnnotation
in interface io.micronaut.core.annotation.AnnotationMetadata
public boolean hasAnnotation(@Nullable java.lang.String annotation)
hasAnnotation
in interface io.micronaut.core.annotation.AnnotationMetadata
public boolean hasStereotype(@Nullable java.lang.String annotation)
hasStereotype
in interface io.micronaut.core.annotation.AnnotationMetadata
public boolean hasDeclaredStereotype(@Nullable java.lang.String annotation)
hasDeclaredStereotype
in interface io.micronaut.core.annotation.AnnotationMetadata
@NonNull public java.util.Map<java.lang.String,java.lang.Object> getDefaultValues(@NonNull java.lang.String annotation)
getDefaultValues
in interface io.micronaut.core.annotation.AnnotationMetadata