@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, getDeclaredAnnotationNameByStereotype, getDeclaredAnnotationNamesByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationTypeByStereotype, getDefaultValue, getDefaultValue, getDefaultValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValues, hasAnnotation, hasDeclaredAnnotation, hasDeclaredStereotype, hasDeclaredStereotype, hasSimpleAnnotation, hasSimpleDeclaredAnnotation, hasStereotype, hasStereotype, hasStereotype, intValue, intValue, isAnnotationPresent, isDeclaredAnnotationPresent, isEmpty, isFalse, isFalse, isPresent, isPresent, isTrue, longValue, stringValue, stringValue, stringValue, stringValues
findAnnotation, findDeclaredAnnotation, getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, synthesize, synthesizeAll, synthesizeAnnotationsByType, 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