public interface Element extends AnnotationMetadataDelegate, AnnotatedElement
CLASS_NAME_SUFFIX, EMPTY_METADATA, VALUE_MEMBER
EMPTY
Modifier and Type | Method and Description |
---|---|
default <T extends java.lang.annotation.Annotation> |
annotate(java.lang.Class<T> annotationType)
Annotate this element with the given annotation type.
|
default <T extends java.lang.annotation.Annotation> |
annotate(java.lang.Class<T> annotationType,
java.util.function.Consumer<AnnotationValueBuilder<T>> consumer)
Annotate this element with the given annotation type.
|
default Element |
annotate(java.lang.String annotationType)
Annotate this element with the given annotation type.
|
default <T extends java.lang.annotation.Annotation> |
annotate(java.lang.String annotationType,
java.util.function.Consumer<AnnotationValueBuilder<T>> consumer)
Annotate this element with the given annotation type.
|
default java.util.Optional<java.lang.String> |
getDocumentation() |
java.lang.String |
getName() |
java.lang.Object |
getNativeType()
Returns the native underlying type.
|
default java.lang.String |
getSimpleName()
The simple name of the element.
|
default boolean |
isAbstract() |
default boolean |
isFinal() |
default boolean |
isPrivate() |
boolean |
isProtected() |
boolean |
isPublic() |
default boolean |
isStatic() |
booleanValue, booleanValue, booleanValue, booleanValue, classValue, classValue, classValue, classValue, classValues, classValues, classValues, classValues, doubleValue, doubleValue, doubleValue, enumValue, enumValue, enumValue, enumValue, enumValues, enumValues, enumValues, enumValues, findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotation, getAnnotation, getAnnotationNameByStereotype, getAnnotationNameByStereotype, getAnnotationNames, getAnnotationNamesByStereotype, getAnnotationNamesByStereotype, getAnnotationType, getAnnotationTypeByStereotype, getAnnotationTypeByStereotype, getAnnotationTypesByStereotype, getAnnotationValuesByType, getDeclaredAnnotation, getDeclaredAnnotation, getDeclaredAnnotationNameByStereotype, getDeclaredAnnotationNames, getDeclaredAnnotationNamesByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationValuesByType, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValues, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValues, getValues, hasAnnotation, hasAnnotation, hasDeclaredAnnotation, hasDeclaredAnnotation, hasDeclaredStereotype, hasDeclaredStereotype, hasDeclaredStereotype, hasSimpleAnnotation, hasSimpleDeclaredAnnotation, hasStereotype, hasStereotype, hasStereotype, hasStereotype, intValue, intValue, intValue, isAnnotationPresent, isDeclaredAnnotationPresent, isEmpty, isFalse, isFalse, isPresent, isPresent, isTrue, isTrue, longValue, longValue, stringValue, stringValue, stringValue, stringValue, stringValues, stringValues, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
isDeclaredNonNull, isDeclaredNullable, isNonNull, isNullable
getAnnotationMetadata
@NonNull java.lang.String getName()
boolean isProtected()
boolean isPublic()
@NonNull java.lang.Object getNativeType()
@NonNull default <T extends java.lang.annotation.Annotation> Element annotate(@NonNull java.lang.String annotationType, @NonNull java.util.function.Consumer<AnnotationValueBuilder<T>> consumer)
T
- The annotation generic typeannotationType
- The annotation typeconsumer
- A function that receives the AnnotationValueBuilder
@NonNull default Element annotate(@NonNull java.lang.String annotationType)
annotationType
- The annotation type@NonNull default <T extends java.lang.annotation.Annotation> Element annotate(@NonNull java.lang.Class<T> annotationType, @NonNull java.util.function.Consumer<AnnotationValueBuilder<T>> consumer)
T
- The annotation generic typeannotationType
- The annotation typeconsumer
- A function that receives the AnnotationValueBuilder
AnnotationValueBuilder
@NonNull default <T extends java.lang.annotation.Annotation> Element annotate(@NonNull java.lang.Class<T> annotationType)
T
- The annotation generic typeannotationType
- The annotation typeAnnotationValueBuilder
@NonNull default java.lang.String getSimpleName()
default boolean isAbstract()
default boolean isStatic()
default java.util.Optional<java.lang.String> getDocumentation()
default boolean isPrivate()
default boolean isFinal()