T
- The annotation typepublic interface AnnotationTransformer<T extends Annotation>
AnnotationTransformer
transforms an annotation definition into one or many other annotation
definitions discarding the original annotation.
Unlike AnnotationMapper
which retains the original annotation information this interface can
be used to optimize produced annotation metadata and discard unnecessary annotations.
AnnotationMapper
Modifier and Type | Method and Description |
---|---|
List<AnnotationValue<?>> |
transform(AnnotationValue<T> annotation,
VisitorContext visitorContext)
The transform method will be called for each instances of the annotation returned via this method.
|
List<AnnotationValue<?>> transform(AnnotationValue<T> annotation, VisitorContext visitorContext)
annotation
- The annotation valuesvisitorContext
- The context that is being visited