Class CoreNonNullTransformer
- java.lang.Object
-
- io.micronaut.inject.annotation.internal.CoreNonNullTransformer
-
- All Implemented Interfaces:
io.micronaut.core.naming.Named
,AnnotationTransformer<java.lang.annotation.Annotation>
,NamedAnnotationTransformer
public class CoreNonNullTransformer extends java.lang.Object implements NamedAnnotationTransformer
A transformer that remapsNonNull
tojavax.annotation.Nonnull
.- Since:
- 2.4.0
-
-
Constructor Summary
Constructors Constructor Description CoreNonNullTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
java.util.List<io.micronaut.core.annotation.AnnotationValue<?>>
transform(io.micronaut.core.annotation.AnnotationValue<java.lang.annotation.Annotation> annotation, VisitorContext visitorContext)
The transform method will be called for each instances of the annotation returned via this method.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceio.micronaut.core.naming.Named
-
transform
public java.util.List<io.micronaut.core.annotation.AnnotationValue<?>> transform(io.micronaut.core.annotation.AnnotationValue<java.lang.annotation.Annotation> annotation, VisitorContext visitorContext)
Description copied from interface:AnnotationTransformer
The transform method will be called for each instances of the annotation returned via this method.- Specified by:
transform
in interfaceAnnotationTransformer<java.lang.annotation.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
-
-