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.AnnotationMetadataUsed 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.OptionalDoubledoubleValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation, java.lang.String member)java.util.OptionalDoubledoubleValue(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)booleanhasAnnotation(java.lang.String annotation)booleanhasDeclaredAnnotation(java.lang.String annotation)booleanhasDeclaredStereotype(java.lang.String annotation)booleanhasStereotype(java.lang.String annotation)java.util.OptionalIntintValue(java.lang.String annotation, java.lang.String member)booleanisTrue(java.lang.String annotation, java.lang.String member)java.util.OptionalLonglongValue(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:
doubleValuein 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:
stringValuesin 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:
booleanValuein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
isTrue
public boolean isTrue(@NonNull java.lang.String annotation, @NonNull java.lang.String member)- Specified by:
isTruein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
longValue
public java.util.OptionalLong longValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member)- Specified by:
longValuein 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:
stringValuein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
intValue
public java.util.OptionalInt intValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member)- Specified by:
intValuein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
doubleValue
@NonNull public java.util.OptionalDouble doubleValue(@NonNull java.lang.String annotation, @NonNull java.lang.String member)- Specified by:
doubleValuein 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:
enumValuein 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:
classValuesin 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:
classValuein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
getAnnotationNamesByStereotype
@NonNull public java.util.List<java.lang.String> getAnnotationNamesByStereotype(@Nullable java.lang.String stereotype)- Specified by:
getAnnotationNamesByStereotypein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
getDeclaredAnnotationNames
@NonNull public java.util.Set<java.lang.String> getDeclaredAnnotationNames()
- Specified by:
getDeclaredAnnotationNamesin interfaceio.micronaut.core.annotation.AnnotationMetadata
-
getAnnotationNames
@NonNull public java.util.Set<java.lang.String> getAnnotationNames()
- Specified by:
getAnnotationNamesin 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:
getValuesin 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:
getDefaultValuein 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:
getAnnotationValuesByTypein 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:
getDeclaredAnnotationValuesByTypein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
hasDeclaredAnnotation
public boolean hasDeclaredAnnotation(@Nullable java.lang.String annotation)- Specified by:
hasDeclaredAnnotationin interfaceio.micronaut.core.annotation.AnnotationMetadata
-
hasAnnotation
public boolean hasAnnotation(@Nullable java.lang.String annotation)- Specified by:
hasAnnotationin interfaceio.micronaut.core.annotation.AnnotationMetadata
-
hasStereotype
public boolean hasStereotype(@Nullable java.lang.String annotation)- Specified by:
hasStereotypein interfaceio.micronaut.core.annotation.AnnotationMetadata
-
hasDeclaredStereotype
public boolean hasDeclaredStereotype(@Nullable java.lang.String annotation)- Specified by:
hasDeclaredStereotypein 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:
getDefaultValuesin interfaceio.micronaut.core.annotation.AnnotationMetadata
-
-