public interface AnnotationMetadataDelegate extends AnnotationMetadataProvider, AnnotationMetadata
AnnotationMetadata
to the AnnotationMetadataProvider.getAnnotationMetadata() method.CLASS_NAME_SUFFIX, EMPTY_METADATA, VALUE_MEMBEREMPTY| Modifier and Type | Method and Description |
|---|---|
default java.util.Optional<java.lang.Boolean> |
booleanValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
The value as an optional boolean for the given annotation and member.
|
default java.util.Optional<java.lang.Boolean> |
booleanValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member)
The value as an optional boolean for the given annotation and member.
|
default java.util.Optional<java.lang.Boolean> |
booleanValue(java.lang.String annotation)
The value as an optional boolean for the given annotation and member.
|
default java.util.Optional<java.lang.Boolean> |
booleanValue(java.lang.String annotation,
java.lang.String member)
The value as an optional boolean for the given annotation and member.
|
default java.util.Optional<java.lang.Class> |
classValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
The value of the annotation as a Class.
|
default java.util.Optional<java.lang.Class> |
classValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member)
The value of the annotation as a Class.
|
default java.util.Optional<java.lang.Class> |
classValue(java.lang.String annotation)
The value of the annotation as a Class.
|
default java.util.Optional<java.lang.Class> |
classValue(java.lang.String annotation,
java.lang.String member)
The value of the annotation as a Class.
|
default <T> java.lang.Class<T>[] |
classValues(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
The value of the annotation as a Class.
|
default <T> java.lang.Class<T>[] |
classValues(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member)
The value of the annotation as a Class.
|
default <T> java.lang.Class<T>[] |
classValues(java.lang.String annotation)
The value of the annotation as a Class.
|
default <T> java.lang.Class<T>[] |
classValues(java.lang.String annotation,
java.lang.String member)
The value of the annotation as a Class.
|
default java.util.OptionalDouble |
doubleValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
The value as an
OptionalDouble for the given annotation and member. |
default java.util.OptionalDouble |
doubleValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member)
The value as an
OptionalDouble for the given annotation and member. |
default java.util.OptionalDouble |
doubleValue(java.lang.String annotation,
java.lang.String member)
The value as an
OptionalDouble for the given annotation and member. |
default <E extends java.lang.Enum> |
enumValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.Class<E> enumType)
The value of the annotation as a Class.
|
default <E extends java.lang.Enum> |
enumValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member,
java.lang.Class<E> enumType)
The value of the annotation as a Class.
|
default <E extends java.lang.Enum> |
enumValue(java.lang.String annotation,
java.lang.Class<E> enumType)
The value of the given enum.
|
default <E extends java.lang.Enum> |
enumValue(java.lang.String annotation,
java.lang.String member,
java.lang.Class<E> enumType)
The value of the annotation as a Class.
|
default <E extends java.lang.Enum> |
enumValues(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.Class<E> enumType)
The enum values for the given annotation.
|
default <E extends java.lang.Enum> |
enumValues(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member,
java.lang.Class<E> enumType)
The enum values for the given annotation.
|
default <E extends java.lang.Enum> |
enumValues(java.lang.String annotation,
java.lang.Class<E> enumType)
The enum values for the given annotation.
|
default <E extends java.lang.Enum> |
enumValues(java.lang.String annotation,
java.lang.String member,
java.lang.Class<E> enumType)
The enum values for the given annotation.
|
default <T extends java.lang.annotation.Annotation> |
findAnnotation(java.lang.Class<T> annotationClass)
Find an
AnnotationValue for the given annotation type. |
default <T extends java.lang.annotation.Annotation> |
findAnnotation(java.lang.String annotation)
Find an
AnnotationValue for the given annotation name. |
default <T extends java.lang.annotation.Annotation> |
findDeclaredAnnotation(java.lang.Class<T> annotationClass)
Get all of the values for the given annotation that are directly declared on the annotated element.
|
default <T extends java.lang.annotation.Annotation> |
findDeclaredAnnotation(java.lang.String annotation)
Get all of the values for the given annotation that are directly declared on the annotated element.
|
default <T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> annotationClass)
Find an
AnnotationValue for the given annotation name. |
default <T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.String annotation)
Find an
AnnotationValue for the given annotation name. |
default java.util.Optional<java.lang.String> |
getAnnotationNameByStereotype(java.lang.Class<? extends java.lang.annotation.Annotation> stereotype)
Find the first annotation name for the given stereotype.
|
default java.util.Optional<java.lang.String> |
getAnnotationNameByStereotype(java.lang.String stereotype)
Find the first annotation name for the given stereotype.
|
default java.util.Set<java.lang.String> |
getAnnotationNames()
All the annotation names this metadata declares.
|
default java.util.List<java.lang.String> |
getAnnotationNamesByStereotype(java.lang.Class<? extends java.lang.annotation.Annotation> stereotype)
Resolve all of the annotation names that feature the given stereotype.
|
default java.util.List<java.lang.String> |
getAnnotationNamesByStereotype(java.lang.String stereotype)
Resolve all of the annotation names that feature the given stereotype.
|
default java.util.Optional<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getAnnotationType(java.lang.String name)
Gets the type for a given annotation if it is present on the classpath.
|
default java.util.Optional<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getAnnotationType(java.lang.String name,
java.lang.ClassLoader classLoader)
Gets the type for a given annotation if it is present on the classpath.
|
default java.util.Optional<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getAnnotationTypeByStereotype(java.lang.Class<? extends java.lang.annotation.Annotation> stereotype)
Find the first annotation name for the given stereotype.
|
default java.util.Optional<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getAnnotationTypeByStereotype(java.lang.String stereotype)
Find the first annotation name for the given stereotype.
|
default java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getAnnotationTypesByStereotype(java.lang.Class<? extends java.lang.annotation.Annotation> stereotype)
Resolve all of the annotation names that feature the given stereotype.
|
default java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getAnnotationTypesByStereotype(java.lang.Class<? extends java.lang.annotation.Annotation> stereotype,
java.lang.ClassLoader classLoader)
Resolve all of the annotation names that feature the given stereotype.
|
default <T extends java.lang.annotation.Annotation> |
getAnnotationValuesByType(java.lang.Class<T> annotationType)
Gets all the annotation values by the given repeatable type.
|
default <T extends java.lang.annotation.Annotation> |
getDeclaredAnnotation(java.lang.Class<T> annotationClass)
Find an
AnnotationValue for the given annotation name. |
default <T extends java.lang.annotation.Annotation> |
getDeclaredAnnotation(java.lang.String annotation)
Get all of the values for the given annotation that are directly declared on the annotated element.
|
default java.util.Optional<java.lang.String> |
getDeclaredAnnotationNameByStereotype(java.lang.String stereotype)
Find the first annotation name for the given stereotype.
|
default java.util.Set<java.lang.String> |
getDeclaredAnnotationNames()
All the declared annotation names this metadata declares.
|
default java.util.List<java.lang.String> |
getDeclaredAnnotationNamesByStereotype(java.lang.String stereotype)
Resolve all of the annotations names for the given stereotype that are declared annotations.
|
default java.util.Optional<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getDeclaredAnnotationTypeByStereotype(java.lang.Class<? extends java.lang.annotation.Annotation> stereotype)
Find the first declared annotation name for the given stereotype.
|
default java.util.Optional<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getDeclaredAnnotationTypeByStereotype(java.lang.String stereotype)
Find the first annotation name for the given stereotype.
|
default <T extends java.lang.annotation.Annotation> |
getDeclaredAnnotationValuesByType(java.lang.Class<T> annotationType)
Gets only declared annotation values by the given repeatable type.
|
default <T> java.util.Optional<T> |
getDefaultValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member,
Argument<T> requiredType)
Return the default value for the given annotation member.
|
default <T> java.util.Optional<T> |
getDefaultValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member,
java.lang.Class<T> requiredType)
Return the default value for the given annotation member.
|
default <T> java.util.Optional<T> |
getDefaultValue(java.lang.String annotation,
java.lang.String member,
Argument<T> requiredType)
Return the default value for the given annotation member.
|
default <T> java.util.Optional<T> |
getDefaultValue(java.lang.String annotation,
java.lang.String member,
java.lang.Class<T> requiredType)
Return the default value for the given annotation member.
|
default java.util.Map<java.lang.String,java.lang.Object> |
getDefaultValues(java.lang.String annotation)
Return the default values for the given annotation name.
|
default java.util.Optional<java.lang.Object> |
getValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
Get the value of default "value" the given annotation.
|
default <T> java.util.Optional<T> |
getValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
Argument<T> requiredType)
Get the value of default "value" the given annotation.
|
default <T> java.util.Optional<T> |
getValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.Class<T> requiredType)
Get the value of default "value" the given annotation.
|
default java.util.Optional<java.lang.Object> |
getValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member)
Get the value of the given annotation member.
|
default <T> java.util.Optional<T> |
getValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member,
Argument<T> requiredType)
Get the value of the given annotation member.
|
default <T> java.util.Optional<T> |
getValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member,
java.lang.Class<T> requiredType)
Get the value of the given annotation member.
|
default java.util.Optional<java.lang.Object> |
getValue(java.lang.String annotation)
Get the value of default "value" the given annotation.
|
default <T> java.util.Optional<T> |
getValue(java.lang.String annotation,
Argument<T> requiredType)
Get the value of default "value" the given annotation.
|
default <T> java.util.Optional<T> |
getValue(java.lang.String annotation,
java.lang.Class<T> requiredType)
Get the value of default "value" the given annotation.
|
default java.util.Optional<java.lang.Object> |
getValue(java.lang.String annotation,
java.lang.String member)
Get the value of the given annotation member.
|
default <T> java.util.Optional<T> |
getValue(java.lang.String annotation,
java.lang.String member,
Argument<T> requiredType)
Get the value of the given annotation member.
|
default <T> java.util.Optional<T> |
getValue(java.lang.String annotation,
java.lang.String member,
java.lang.Class<T> requiredType)
Get the value of the given annotation member.
|
default <T> OptionalValues<T> |
getValues(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.Class<T> valueType)
Get all of the values for the given annotation.
|
default <T> OptionalValues<T> |
getValues(java.lang.String annotation,
java.lang.Class<T> valueType)
Get all of the values for the given annotation and type of the underlying values.
|
default boolean |
hasAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
Checks whether this object has the given annotation on the object itself or inherited from a parent.
|
default boolean |
hasAnnotation(java.lang.String annotation)
Checks whether this object has the given annotation on the object itself or inherited from a parent.
|
default boolean |
hasDeclaredAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
Checks whether this object has the given annotation directly declared on the object.
|
default boolean |
hasDeclaredAnnotation(java.lang.String annotation)
Checks whether this object has the given annotation directly declared on the object.
|
default boolean |
hasDeclaredStereotype(java.lang.Class<? extends java.lang.annotation.Annotation>... annotations)
Checks whether this object has any of the given stereotype directly declared on the object.
|
default boolean |
hasDeclaredStereotype(java.lang.Class<? extends java.lang.annotation.Annotation> stereotype)
Checks whether this object has the given stereotype directly declared on the object.
|
default boolean |
hasDeclaredStereotype(java.lang.String annotation)
Checks whether this object has the given annotation stereotype on the object itself and not inherited from a parent
|
default boolean |
hasSimpleAnnotation(java.lang.String annotation)
Checks whether the given annotation simple name (name without the package) is present in the annotations.
|
default boolean |
hasSimpleDeclaredAnnotation(java.lang.String annotation)
Checks whether the given annotation simple name (name without the package) is present in the declared annotations.
|
default boolean |
hasStereotype(java.lang.Class<? extends java.lang.annotation.Annotation>... annotations)
Check whether any of the given stereotypes is present.
|
default boolean |
hasStereotype(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
Checks whether this object has the given annotation stereotype on the object itself or inherited from a parent
|
default boolean |
hasStereotype(java.lang.String annotation)
Checks whether this object has the given annotation stereotype on the object itself or inherited from a parent
|
default boolean |
hasStereotype(java.lang.String[] annotations)
Check whether any of the given stereotypes is present.
|
default java.util.OptionalInt |
intValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
The value as an
OptionalInt for the given annotation and member. |
default java.util.OptionalInt |
intValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member)
The value as an
OptionalInt for the given annotation and member. |
default java.util.OptionalInt |
intValue(java.lang.String annotation,
java.lang.String member)
The value as an
OptionalInt for the given annotation and member. |
default boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
Return whether an annotation is present.
|
default boolean |
isDeclaredAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
Variation of
AnnotationSource.isAnnotationPresent(Class) for declared annotations. |
default boolean |
isEmpty()
Is the annotation metadata empty.
|
default boolean |
isFalse(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member)
Returns whether the value of the given member is true.
|
default boolean |
isFalse(java.lang.String annotation,
java.lang.String member)
Returns whether the value of the given member is true.
|
default boolean |
isPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member)
Returns whether the value of the given member is present.
|
default boolean |
isPresent(java.lang.String annotation,
java.lang.String member)
Returns whether the value of the given member is present.
|
default boolean |
isTrue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member)
Returns whether the value of the given member is true.
|
default boolean |
isTrue(java.lang.String annotation,
java.lang.String member)
Returns whether the value of the given member is true.
|
default java.util.OptionalLong |
longValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member)
The value as an
OptionalLong for the given annotation and member. |
default java.util.OptionalLong |
longValue(java.lang.String annotation,
java.lang.String member)
The value as an
OptionalLong for the given annotation and member. |
default java.util.Optional<java.lang.String> |
stringValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
The value as an optional string for the given annotation and member.
|
default java.util.Optional<java.lang.String> |
stringValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member)
The value as an optional string for the given annotation and member.
|
default java.util.Optional<java.lang.String> |
stringValue(java.lang.String annotation)
The value as an optional string for the given annotation and member.
|
default java.util.Optional<java.lang.String> |
stringValue(java.lang.String annotation,
java.lang.String member)
The value as an optional string for the given annotation and member.
|
default java.lang.String[] |
stringValues(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
The values as string array for the given annotation and member.
|
default java.lang.String[] |
stringValues(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String member)
The values as string array for the given annotation and member.
|
default <T extends java.lang.annotation.Annotation> |
synthesize(java.lang.Class<T> annotationClass)
Synthesizes a new annotation from the metadata for the given annotation type.
|
default java.lang.annotation.Annotation[] |
synthesizeAll()
Synthesizes a new annotations from the metadata.
|
default <T extends java.lang.annotation.Annotation> |
synthesizeAnnotationsByType(java.lang.Class<T> annotationClass)
Synthesizes a new annotations from the metadata for the given type.
|
default java.lang.annotation.Annotation[] |
synthesizeDeclared()
Synthesizes a new annotations from the metadata.
|
default <T extends java.lang.annotation.Annotation> |
synthesizeDeclared(java.lang.Class<T> annotationClass)
Synthesizes a new annotation from the metadata for the given annotation type.
|
default <T extends java.lang.annotation.Annotation> |
synthesizeDeclaredAnnotationsByType(java.lang.Class<T> annotationClass)
Synthesizes a new annotations from the metadata for the given type.
|
getAnnotationMetadatadefault boolean hasSimpleAnnotation(@Nullable
java.lang.String annotation)
AnnotationMetadatahasSimpleAnnotation in interface AnnotationMetadataannotation - The annotationdefault boolean hasSimpleDeclaredAnnotation(@Nullable
java.lang.String annotation)
AnnotationMetadatahasSimpleDeclaredAnnotation in interface AnnotationMetadataannotation - The annotationdefault <E extends java.lang.Enum> E[] enumValues(@NonNull
java.lang.String annotation,
java.lang.Class<E> enumType)
AnnotationMetadataenumValues in interface AnnotationMetadataE - The enum typeannotation - The annotationenumType - The enum typedefault <E extends java.lang.Enum> E[] enumValues(@NonNull
java.lang.String annotation,
@NonNull
java.lang.String member,
java.lang.Class<E> enumType)
AnnotationMetadataenumValues in interface AnnotationMetadataE - The enum typeannotation - The annotationmember - The annotation memberenumType - The enum typedefault <E extends java.lang.Enum> E[] enumValues(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.Class<E> enumType)
AnnotationMetadataenumValues in interface AnnotationMetadataE - The enum typeannotation - The annotationenumType - The enum typedefault <E extends java.lang.Enum> E[] enumValues(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
@NonNull
java.lang.String member,
java.lang.Class<E> enumType)
AnnotationMetadataenumValues in interface AnnotationMetadataE - The enum typeannotation - The annotationmember - The annotation memberenumType - The enum typedefault <T> java.lang.Class<T>[] classValues(@NonNull
java.lang.String annotation)
AnnotationMetadataclassValues in interface AnnotationMetadataT - The type of the classannotation - The annotationOptional classdefault <T> java.lang.Class<T>[] classValues(@NonNull
java.lang.String annotation,
@NonNull
java.lang.String member)
AnnotationMetadataclassValues in interface AnnotationMetadataT - The type of the classannotation - The annotationmember - The annotation memberOptional classdefault <T> java.lang.Class<T>[] classValues(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
AnnotationMetadataclassValues in interface AnnotationMetadataT - The type of the classannotation - The annotationOptional classdefault <T> java.lang.Class<T>[] classValues(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
@NonNull
java.lang.String member)
AnnotationMetadataclassValues in interface AnnotationMetadataT - The type of the classannotation - The annotationmember - The annotation memberOptional classdefault <E extends java.lang.Enum> java.util.Optional<E> enumValue(@NonNull
java.lang.String annotation,
java.lang.Class<E> enumType)
AnnotationMetadataenumValue in interface AnnotationMetadataE - The enum typeannotation - The annotationenumType - The enum typeOptional enum valuedefault <E extends java.lang.Enum> java.util.Optional<E> enumValue(@NonNull
java.lang.String annotation,
@NonNull
java.lang.String member,
java.lang.Class<E> enumType)
AnnotationMetadataenumValue in interface AnnotationMetadataE - The enum typeannotation - The annotationmember - The annotation memberenumType - The enum typeOptional classdefault <E extends java.lang.Enum> java.util.Optional<E> enumValue(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.Class<E> enumType)
AnnotationMetadataenumValue in interface AnnotationMetadataE - The enum typeannotation - The annotationenumType - The enum typeOptional classdefault <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)
AnnotationMetadataenumValue in interface AnnotationMetadataE - The enum typeannotation - The annotationmember - The annotation memberenumType - The enum typeOptional classdefault java.util.OptionalLong longValue(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
@NonNull
java.lang.String member)
AnnotationMetadataOptionalLong for the given annotation and member.longValue in interface AnnotationMetadataannotation - The annotationmember - The memberOptionalLong valuedefault java.util.Optional<java.lang.Boolean> booleanValue(@NonNull
java.lang.String annotation,
@NonNull
java.lang.String member)
AnnotationMetadatabooleanValue in interface AnnotationMetadataannotation - The annotationmember - The memberdefault java.util.Optional<java.lang.Boolean> booleanValue(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
@NonNull
java.lang.String member)
AnnotationMetadatabooleanValue in interface AnnotationMetadataannotation - The annotationmember - The member@NonNull
default java.util.Optional<java.lang.Boolean> booleanValue(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
AnnotationMetadatabooleanValue in interface AnnotationMetadataannotation - The annotation@NonNull
default java.util.Optional<java.lang.Boolean> booleanValue(@NonNull
java.lang.String annotation)
AnnotationMetadatabooleanValue in interface AnnotationMetadataannotation - The annotation@NonNull
default java.lang.String[] stringValues(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
@NonNull
java.lang.String member)
AnnotationMetadatastringValues in interface AnnotationMetadataannotation - The annotationmember - The member@NonNull
default java.lang.String[] stringValues(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
AnnotationMetadatastringValues in interface AnnotationMetadataannotation - The annotation@NonNull
default java.util.OptionalInt intValue(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
@NonNull
java.lang.String member)
AnnotationMetadataOptionalInt for the given annotation and member.intValue in interface AnnotationMetadataannotation - The annotationmember - The memberOptionalInt value@NonNull
default java.util.OptionalInt intValue(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
AnnotationMetadataOptionalInt for the given annotation and member.intValue in interface AnnotationMetadataannotation - The annotationOptionalInt value@NonNull
default java.util.Optional<java.lang.String> stringValue(@NonNull
java.lang.String annotation,
@NonNull
java.lang.String member)
AnnotationMetadatastringValue in interface AnnotationMetadataannotation - The annotationmember - The member@NonNull
default java.util.Optional<java.lang.String> stringValue(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
@NonNull
java.lang.String member)
AnnotationMetadatastringValue in interface AnnotationMetadataannotation - The annotationmember - The member@NonNull
default java.util.Optional<java.lang.String> stringValue(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
AnnotationMetadatastringValue in interface AnnotationMetadataannotation - The annotation@NonNull
default java.util.Optional<java.lang.String> stringValue(@NonNull
java.lang.String annotation)
AnnotationMetadatastringValue in interface AnnotationMetadataannotation - The annotation@NonNull
default java.util.OptionalDouble doubleValue(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
@NonNull
java.lang.String member)
AnnotationMetadataOptionalDouble for the given annotation and member.doubleValue in interface AnnotationMetadataannotation - The annotationmember - The memberOptionalDouble value@NonNull
default java.util.OptionalDouble doubleValue(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
AnnotationMetadataOptionalDouble for the given annotation and member.doubleValue in interface AnnotationMetadataannotation - The annotationOptionalDouble value@NonNull
default java.util.Map<java.lang.String,java.lang.Object> getDefaultValues(@NonNull
java.lang.String annotation)
AnnotationMetadatagetDefaultValues in interface AnnotationMetadataannotation - The annotation name@NonNull
default <T> java.util.Optional<T> getValue(@NonNull
java.lang.String annotation,
@NonNull
Argument<T> requiredType)
AnnotationMetadatagetValue in interface AnnotationMetadataT - Generic typeannotation - The annotation classrequiredType - requiredTypeOptional of the value@NonNull
default <T> java.util.Optional<T> getValue(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
@NonNull
Argument<T> requiredType)
AnnotationMetadatagetValue in interface AnnotationMetadataT - Generic typeannotation - The annotation classrequiredType - requiredTypeOptional of the value@NonNull
default <T> java.util.Optional<T> getValue(@NonNull
java.lang.String annotation,
@NonNull
java.lang.String member,
@NonNull
Argument<T> requiredType)
AnnotationMetadatagetValue in interface AnnotationMetadataT - The valueannotation - The annotation classmember - The annotation memberrequiredType - The required typeOptional of the value@NonNull
default <T> java.util.Optional<T> getDefaultValue(@NonNull
java.lang.String annotation,
@NonNull
java.lang.String member,
@NonNull
Argument<T> requiredType)
AnnotationMetadatagetDefaultValue in interface AnnotationMetadataT - The required generic typeannotation - The annotationmember - The memberrequiredType - The required type@NonNull
default <T> java.util.Optional<T> getDefaultValue(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
@NonNull
java.lang.String member,
@NonNull
Argument<T> requiredType)
AnnotationMetadatagetDefaultValue in interface AnnotationMetadataT - The required generic typeannotation - The annotationmember - The memberrequiredType - The required type@NonNull
default <T> java.util.Optional<T> getValue(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
@NonNull
java.lang.String member,
@NonNull
Argument<T> requiredType)
AnnotationMetadatagetValue in interface AnnotationMetadataT - The valueannotation - The annotation classmember - The annotation memberrequiredType - The required typeOptional of the valuedefault <T extends java.lang.annotation.Annotation> T synthesizeDeclared(@NonNull
java.lang.Class<T> annotationClass)
AnnotationSourceThis method ignores inherited annotations. (Returns null if no annotations are directly present on this element.)
synthesizeDeclared in interface AnnotationMetadataProvidersynthesizeDeclared in interface AnnotationSourceT - The annotation generic typeannotationClass - The annotation class@NonNull
default <T extends java.lang.annotation.Annotation> T[] synthesizeAnnotationsByType(@NonNull
java.lang.Class<T> annotationClass)
AnnotationSourcesynthesizeAnnotationsByType in interface AnnotationMetadataProvidersynthesizeAnnotationsByType in interface AnnotationSourceT - The annotation generic typeannotationClass - The annotation type@NonNull
default <T extends java.lang.annotation.Annotation> T[] synthesizeDeclaredAnnotationsByType(@NonNull
java.lang.Class<T> annotationClass)
AnnotationSourcesynthesizeDeclaredAnnotationsByType in interface AnnotationMetadataProvidersynthesizeDeclaredAnnotationsByType in interface AnnotationSourceT - The annotation generic typeannotationClass - The annotation type@Nullable default <T extends java.lang.annotation.Annotation> AnnotationValue<T> getAnnotation(@NonNull java.lang.String annotation)
AnnotationSourceAnnotationValue for the given annotation name.getAnnotation in interface AnnotationSourceT - The annotation typeannotation - The annotation nameAnnotationValue instance or null@Nullable default <T extends java.lang.annotation.Annotation> AnnotationValue<T> getAnnotation(@NonNull java.lang.Class<T> annotationClass)
AnnotationSourceAnnotationValue for the given annotation name.getAnnotation in interface AnnotationSourceT - The annotation typeannotationClass - The annotation nameAnnotationValue instance or null@Nullable default <T extends java.lang.annotation.Annotation> AnnotationValue<T> getDeclaredAnnotation(@NonNull java.lang.String annotation)
AnnotationSourcegetDeclaredAnnotation in interface AnnotationSourceT - The annotation typeannotation - The annotation nameAnnotationValue instance@NonNull default <T extends java.lang.annotation.Annotation> java.util.Optional<AnnotationValue<T>> findDeclaredAnnotation(@NonNull java.lang.Class<T> annotationClass)
AnnotationSourcefindDeclaredAnnotation in interface AnnotationMetadatafindDeclaredAnnotation in interface AnnotationMetadataProviderfindDeclaredAnnotation in interface AnnotationSourceT - The annotation typeannotationClass - The annotation nameAnnotationValue instance@Nullable default <T extends java.lang.annotation.Annotation> AnnotationValue<T> getDeclaredAnnotation(@NonNull java.lang.Class<T> annotationClass)
AnnotationSourceAnnotationValue for the given annotation name.getDeclaredAnnotation in interface AnnotationSourceT - The annotation typeannotationClass - The annotation nameAnnotationValue instance or nulldefault boolean isAnnotationPresent(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
AnnotationSourceisAnnotationPresent in interface AnnotationMetadataisAnnotationPresent in interface AnnotationMetadataProviderisAnnotationPresent in interface AnnotationSourceannotationClass - The annotation classAnnotationSource.isAnnotationPresent(Class)default boolean isDeclaredAnnotationPresent(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
AnnotationSourceAnnotationSource.isAnnotationPresent(Class) for declared annotations.isDeclaredAnnotationPresent in interface AnnotationMetadataisDeclaredAnnotationPresent in interface AnnotationMetadataProviderisDeclaredAnnotationPresent in interface AnnotationSourceannotationClass - The annotation classAnnotationSource.isAnnotationPresent(Class)@NonNull
default <T> java.util.Optional<T> getDefaultValue(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
@NonNull
java.lang.String member,
@NonNull
java.lang.Class<T> requiredType)
AnnotationMetadatagetDefaultValue in interface AnnotationMetadataT - The required generic typeannotation - The annotationmember - The memberrequiredType - The required type@NonNull
default <T> java.util.Optional<T> getValue(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
@NonNull
java.lang.String member,
@NonNull
java.lang.Class<T> requiredType)
AnnotationMetadatagetValue in interface AnnotationMetadataT - The valueannotation - The annotation classmember - The annotation memberrequiredType - The required typeOptional of the value@NonNull default java.util.Optional<java.lang.String> getAnnotationNameByStereotype(java.lang.String stereotype)
AnnotationMetadatagetAnnotationNameByStereotype in interface AnnotationMetadatastereotype - The stereotype@NonNull default java.util.Optional<java.lang.String> getDeclaredAnnotationNameByStereotype(java.lang.String stereotype)
AnnotationMetadatagetDeclaredAnnotationNameByStereotype in interface AnnotationMetadatastereotype - The stereotype@NonNull
default java.util.Optional<java.lang.Class<? extends java.lang.annotation.Annotation>> getAnnotationTypeByStereotype(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> stereotype)
AnnotationMetadatagetAnnotationTypeByStereotype in interface AnnotationMetadatastereotype - The stereotype@NonNull
default java.util.Optional<java.lang.Class<? extends java.lang.annotation.Annotation>> getDeclaredAnnotationTypeByStereotype(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> stereotype)
AnnotationMetadatagetDeclaredAnnotationTypeByStereotype in interface AnnotationMetadatastereotype - The stereotype@NonNull default java.util.Optional<java.lang.Class<? extends java.lang.annotation.Annotation>> getDeclaredAnnotationTypeByStereotype(java.lang.String stereotype)
AnnotationMetadatagetDeclaredAnnotationTypeByStereotype in interface AnnotationMetadatastereotype - The stereotype@NonNull default java.util.Optional<java.lang.Class<? extends java.lang.annotation.Annotation>> getAnnotationTypeByStereotype(java.lang.String stereotype)
AnnotationMetadatagetAnnotationTypeByStereotype in interface AnnotationMetadatastereotype - The stereotype@NonNull
default java.util.Optional<java.lang.String> getAnnotationNameByStereotype(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> stereotype)
AnnotationMetadatagetAnnotationNameByStereotype in interface AnnotationMetadatastereotype - The stereotype@NonNull default <T> OptionalValues<T> getValues(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> annotation, @NonNull java.lang.Class<T> valueType)
AnnotationMetadatagetValues in interface AnnotationMetadataT - Generic typeannotation - The annotation namevalueType - valueTypeOptionalValues@NonNull
default java.util.List<java.lang.String> getAnnotationNamesByStereotype(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> stereotype)
AnnotationMetadatagetAnnotationNamesByStereotype in interface AnnotationMetadatastereotype - The annotation names@NonNull
default java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> getAnnotationTypesByStereotype(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> stereotype)
AnnotationMetadatagetAnnotationTypesByStereotype in interface AnnotationMetadatastereotype - The annotation names@NonNull
default java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> getAnnotationTypesByStereotype(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> stereotype,
@NonNull
java.lang.ClassLoader classLoader)
AnnotationMetadatagetAnnotationTypesByStereotype in interface AnnotationMetadatastereotype - The annotation namesclassLoader - The classloader to load annotation type@NonNull default <T extends java.lang.annotation.Annotation> java.util.Optional<AnnotationValue<T>> findAnnotation(@NonNull java.lang.Class<T> annotationClass)
AnnotationSourceAnnotationValue for the given annotation type.findAnnotation in interface AnnotationMetadatafindAnnotation in interface AnnotationMetadataProviderfindAnnotation in interface AnnotationSourceT - The annotation typeannotationClass - The annotationAnnotationValue instance@NonNull
default <T> java.util.Optional<T> getValue(@NonNull
java.lang.String annotation,
@NonNull
java.lang.String member,
@NonNull
java.lang.Class<T> requiredType)
AnnotationMetadatagetValue in interface AnnotationMetadataT - The valueannotation - The annotation classmember - The annotation memberrequiredType - The required typeOptional of the value@NonNull
default java.util.OptionalLong longValue(@NonNull
java.lang.String annotation,
@NonNull
java.lang.String member)
AnnotationMetadataOptionalLong for the given annotation and member.longValue in interface AnnotationMetadataannotation - The annotationmember - The memberOptionalLong value@NonNull
default java.util.Optional<java.lang.Class> classValue(@NonNull
java.lang.String annotation)
AnnotationMetadataclassValue in interface AnnotationMetadataannotation - The annotationOptional class@NonNull
default java.util.Optional<java.lang.Class> classValue(@NonNull
java.lang.String annotation,
@NonNull
java.lang.String member)
AnnotationMetadataclassValue in interface AnnotationMetadataannotation - The annotationmember - The annotation memberOptional class@NonNull
default java.util.Optional<java.lang.Class> classValue(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
AnnotationMetadataclassValue in interface AnnotationMetadataannotation - The annotationOptional class@NonNull
default java.util.Optional<java.lang.Class> classValue(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
@NonNull
java.lang.String member)
AnnotationMetadataclassValue in interface AnnotationMetadataannotation - The annotationmember - The annotation memberOptional class@NonNull
default java.util.OptionalInt intValue(@NonNull
java.lang.String annotation,
@NonNull
java.lang.String member)
AnnotationMetadataOptionalInt for the given annotation and member.intValue in interface AnnotationMetadataannotation - The annotationmember - The memberOptionalInt value@NonNull
default java.util.OptionalDouble doubleValue(@NonNull
java.lang.String annotation,
@NonNull
java.lang.String member)
AnnotationMetadataOptionalDouble for the given annotation and member.doubleValue in interface AnnotationMetadataannotation - The annotationmember - The memberOptionalDouble value@NonNull
default <T> java.util.Optional<T> getValue(@NonNull
java.lang.String annotation,
@NonNull
java.lang.Class<T> requiredType)
AnnotationMetadatagetValue in interface AnnotationMetadataT - The valueannotation - The annotation classrequiredType - The required typeOptional of the value@NonNull
default java.util.Optional<java.lang.Object> getValue(@NonNull
java.lang.String annotation,
@NonNull
java.lang.String member)
AnnotationMetadatagetValue in interface AnnotationMetadataannotation - The annotation classmember - The annotation memberOptional of the value@NonNull
default java.util.Optional<java.lang.Object> getValue(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
@NonNull
java.lang.String member)
AnnotationMetadatagetValue in interface AnnotationMetadataannotation - The annotation classmember - The annotation memberOptional of the valuedefault boolean isTrue(@NonNull
java.lang.String annotation,
@NonNull
java.lang.String member)
AnnotationMetadataisTrue in interface AnnotationMetadataannotation - The annotation classmember - The annotation memberdefault boolean isTrue(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
@NonNull
java.lang.String member)
AnnotationMetadataisTrue in interface AnnotationMetadataannotation - The annotation classmember - The annotation memberdefault boolean isPresent(@NonNull
java.lang.String annotation,
@NonNull
java.lang.String member)
AnnotationMetadataisPresent in interface AnnotationMetadataannotation - The annotation classmember - The annotation memberdefault boolean isPresent(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
@NonNull
java.lang.String member)
AnnotationMetadataisPresent in interface AnnotationMetadataannotation - The annotation classmember - The annotation memberdefault boolean isFalse(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
@NonNull
java.lang.String member)
AnnotationMetadataisFalse in interface AnnotationMetadataannotation - The annotation classmember - The annotation memberdefault boolean isFalse(@NonNull
java.lang.String annotation,
@NonNull
java.lang.String member)
AnnotationMetadataisFalse in interface AnnotationMetadataannotation - The annotation classmember - The annotation member@NonNull
default java.util.Optional<java.lang.Object> getValue(@NonNull
java.lang.String annotation)
AnnotationMetadatagetValue in interface AnnotationMetadataannotation - The annotation classOptional of the value@NonNull
default java.util.Optional<java.lang.Object> getValue(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
AnnotationMetadatagetValue in interface AnnotationMetadataannotation - The annotation classOptional of the value@NonNull
default <T> java.util.Optional<T> getValue(@NonNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
@NonNull
java.lang.Class<T> requiredType)
AnnotationMetadatagetValue in interface AnnotationMetadataT - Generic typeannotation - The annotation classrequiredType - requiredTypeOptional of the value@NonNull
default java.util.Optional<java.lang.Class<? extends java.lang.annotation.Annotation>> getAnnotationType(@NonNull
java.lang.String name)
AnnotationMetadatagetAnnotationType in interface AnnotationMetadataname - The type name@NonNull
default java.util.Optional<java.lang.Class<? extends java.lang.annotation.Annotation>> getAnnotationType(@NonNull
java.lang.String name,
@NonNull
java.lang.ClassLoader classLoader)
AnnotationMetadatagetAnnotationType in interface AnnotationMetadataname - The type nameclassLoader - The ClassLoader to load the typedefault boolean hasAnnotation(@Nullable
java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
AnnotationMetadatahasAnnotation in interface AnnotationMetadataannotation - The annotationdefault boolean hasStereotype(@Nullable
java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
AnnotationMetadataChecks whether this object has the given annotation stereotype on the object itself or inherited from a parent
.
An annotation stereotype is a meta annotation potentially applied to another annotation
hasStereotype in interface AnnotationMetadataannotation - The annotationdefault boolean hasStereotype(java.lang.Class<? extends java.lang.annotation.Annotation>... annotations)
AnnotationMetadatahasStereotype in interface AnnotationMetadataannotations - The annotationsdefault boolean hasStereotype(java.lang.String[] annotations)
AnnotationMetadatahasStereotype in interface AnnotationMetadataannotations - The annotationsdefault boolean hasDeclaredAnnotation(@Nullable
java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
AnnotationMetadatahasDeclaredAnnotation in interface AnnotationMetadataannotation - The annotationdefault boolean hasDeclaredStereotype(@Nullable
java.lang.Class<? extends java.lang.annotation.Annotation> stereotype)
AnnotationMetadatahasDeclaredStereotype in interface AnnotationMetadatastereotype - The annotationdefault boolean hasDeclaredStereotype(java.lang.Class<? extends java.lang.annotation.Annotation>... annotations)
AnnotationMetadatahasDeclaredStereotype in interface AnnotationMetadataannotations - The annotationsdefault boolean isEmpty()
AnnotationMetadataisEmpty in interface AnnotationMetadatadefault boolean hasDeclaredAnnotation(java.lang.String annotation)
AnnotationMetadatahasDeclaredAnnotation in interface AnnotationMetadataannotation - The annotation@NonNull default java.util.Set<java.lang.String> getAnnotationNames()
AnnotationMetadatagetAnnotationNames in interface AnnotationMetadata@NonNull default java.util.Set<java.lang.String> getDeclaredAnnotationNames()
AnnotationMetadatagetDeclaredAnnotationNames in interface AnnotationMetadatadefault boolean hasAnnotation(java.lang.String annotation)
AnnotationMetadatahasAnnotation in interface AnnotationMetadataannotation - The annotationdefault boolean hasStereotype(java.lang.String annotation)
AnnotationMetadataChecks whether this object has the given annotation stereotype on the object itself or inherited from a parent
.
An annotation stereotype is a meta annotation potentially applied to another annotation
hasStereotype in interface AnnotationMetadataannotation - The annotationdefault boolean hasDeclaredStereotype(java.lang.String annotation)
AnnotationMetadataChecks whether this object has the given annotation stereotype on the object itself and not inherited from a parent
.
An annotation stereotype is a meta annotation potentially applied to another annotation
hasDeclaredStereotype in interface AnnotationMetadataannotation - The annotation@NonNull default java.util.List<java.lang.String> getAnnotationNamesByStereotype(java.lang.String stereotype)
AnnotationMetadatagetAnnotationNamesByStereotype in interface AnnotationMetadatastereotype - The annotation names@NonNull default java.util.List<java.lang.String> getDeclaredAnnotationNamesByStereotype(java.lang.String stereotype)
AnnotationMetadatagetDeclaredAnnotationNamesByStereotype in interface AnnotationMetadatastereotype - The stereotype@NonNull default <T extends java.lang.annotation.Annotation> java.util.Optional<AnnotationValue<T>> findAnnotation(@NonNull java.lang.String annotation)
AnnotationSourceAnnotationValue for the given annotation name.findAnnotation in interface AnnotationMetadataProviderfindAnnotation in interface AnnotationSourceT - The annotation typeannotation - The annotation nameAnnotationValue instance@NonNull default <T> OptionalValues<T> getValues(@NonNull java.lang.String annotation, @NonNull java.lang.Class<T> valueType)
AnnotationMetadatagetValues in interface AnnotationMetadataT - Generic typeannotation - The annotation namevalueType - valueTypeOptionalValues@NonNull default <T extends java.lang.annotation.Annotation> java.util.Optional<AnnotationValue<T>> findDeclaredAnnotation(@NonNull java.lang.String annotation)
AnnotationSourcefindDeclaredAnnotation in interface AnnotationMetadataProviderfindDeclaredAnnotation in interface AnnotationSourceT - The annotation typeannotation - The annotation nameAnnotationValue instance@NonNull
default <T> java.util.Optional<T> getDefaultValue(@NonNull
java.lang.String annotation,
@NonNull
java.lang.String member,
@NonNull
java.lang.Class<T> requiredType)
AnnotationMetadatagetDefaultValue in interface AnnotationMetadataT - The required generic typeannotation - The annotationmember - The memberrequiredType - The required type@Nullable
default <T extends java.lang.annotation.Annotation> T synthesize(@NonNull
java.lang.Class<T> annotationClass)
AnnotationSourcesynthesize in interface AnnotationMetadataProvidersynthesize in interface AnnotationSourceT - The annotation generic typeannotationClass - The annotation class@NonNull default java.lang.annotation.Annotation[] synthesizeAll()
AnnotationSourcesynthesizeAll in interface AnnotationMetadataProvidersynthesizeAll in interface AnnotationSource@NonNull default java.lang.annotation.Annotation[] synthesizeDeclared()
AnnotationSourcesynthesizeDeclared in interface AnnotationMetadataProvidersynthesizeDeclared in interface AnnotationSource@NonNull default <T extends java.lang.annotation.Annotation> java.util.List<AnnotationValue<T>> getAnnotationValuesByType(@NonNull java.lang.Class<T> annotationType)
AnnotationMetadatagetAnnotationValuesByType in interface AnnotationMetadataT - The annotation typeannotationType - The annotation type@NonNull default <T extends java.lang.annotation.Annotation> java.util.List<AnnotationValue<T>> getDeclaredAnnotationValuesByType(@NonNull java.lang.Class<T> annotationType)
AnnotationMetadatagetDeclaredAnnotationValuesByType in interface AnnotationMetadataT - The annotation typeannotationType - The annotation type