Class KotlinNotNullMapper
java.lang.Object
io.micronaut.inject.annotation.internal.KotlinNotNullMapper
- All Implemented Interfaces:
Named,AnnotationTransformer<Annotation>,NamedAnnotationTransformer
An annotation mapper that maps Kotlin's NotNull to a common annotation.
- Since:
- 1.1.4
- Author:
- graemerocher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()List<AnnotationValue<?>>transform(AnnotationValue<Annotation> annotation, VisitorContext visitorContext) The transform method will be called for each instances of the annotation returned via this method.
-
Constructor Details
-
KotlinNotNullMapper
public KotlinNotNullMapper()
-
-
Method Details
-
getName
-
transform
public List<AnnotationValue<?>> transform(AnnotationValue<Annotation> annotation, VisitorContext visitorContext) Description copied from interface:AnnotationTransformerThe transform method will be called for each instances of the annotation returned via this method.- Specified by:
transformin interfaceAnnotationTransformer<Annotation>- Parameters:
annotation- The annotation valuesvisitorContext- The context that is being visited- Returns:
- A list of zero or many annotations and values to map to
-