Package io.micronaut.core.annotation
Interface AnnotatedElement
-
- All Superinterfaces:
AnnotationMetadataProvider,AnnotationSource,Named
- All Known Subinterfaces:
Argument<T>,ArgumentValue<V>,BeanProperty<B,T>,GenericPlaceholder<T>,MutableArgumentValue<V>,UnsafeBeanProperty<B,T>
- All Known Implementing Classes:
AbstractBeanProperty,DefaultArgument,GenericArgument
public interface AnnotatedElement extends AnnotationMetadataProvider, Named
An annotated element is some point in the code, whether it be a constructor, field, method etc. which provides annotation metadata.- Since:
- 1.2
-
-
Field Summary
-
Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default booleanisDeclaredNonNull()default booleanisDeclaredNullable()default booleanisNonNull()default booleanisNullable()-
Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
-
Methods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
-
-
-
-
Method Detail
-
isDeclaredNullable
default boolean isDeclaredNullable()
- Returns:
- Whether the element is nullable.
-
isNullable
default boolean isNullable()
- Returns:
- Whether the element is nullable.
-
isNonNull
default boolean isNonNull()
- Returns:
- Whether the element is declared as not being null
-
isDeclaredNonNull
default boolean isDeclaredNonNull()
- Returns:
- Whether the element is declared as not being null
-
-