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 edu.umd.cs.findbugs.annotations.Nullable
. One can
remap these to a single annotation internally at compilation time.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPackageName() |
java.util.List<AnnotationValue<?>> |
remap(AnnotationValue<?> annotation,
VisitorContext visitorContext)
The map method will be called for each instances of the annotation returned via this method.
|
@NonNull java.lang.String getPackageName()
@NonNull java.util.List<AnnotationValue<?>> remap(AnnotationValue<?> annotation, VisitorContext visitorContext)
annotation
- The annotation valuesvisitorContext
- The context that is being visited