public interface AnnotationRemapper
AnnotationMapper
interface with the following differences:
Useful for supporting multiple annotation sets that reside in different package namespaces, however are largely
similar in function, for example javax.annotation.Nullable
and io.micronaut.core.annotation.Nullable
. One can
remap these to a single annotation internally at compilation time.
Modifier and Type | Method and Description |
---|---|
String |
getPackageName() |
List<AnnotationValue<?>> |
remap(AnnotationValue<?> annotation,
VisitorContext visitorContext)
The map method will be called for each instances of the annotation returned via this method.
|
@NonNull List<AnnotationValue<?>> remap(AnnotationValue<?> annotation, VisitorContext visitorContext)
annotation
- The annotation valuesvisitorContext
- The context that is being visited