public interface AnnotationMapper
Maps annotation from a single annotation instance to zero or more annotation instances.
-
Method Summary
Modifier and TypeMethodDescriptionmapAnnotation
(CodegenContext ctx, Annotation original, ElementKind elementKind) Map an annotation to a set of new annotations.boolean
supportsAnnotation
(Annotation annotation) Check if the annotation is supported.
-
Method Details
-
supportsAnnotation
Check if the annotation is supported.- Parameters:
annotation
- annotation to check- Returns:
true
if this mapper is interested in the annotation.
-
mapAnnotation
Collection<Annotation> mapAnnotation(CodegenContext ctx, Annotation original, ElementKind elementKind) Map an annotation to a set of new annotations. The original annotation is not retained, unless part of the result of this method.- Parameters:
ctx
- code generation contextoriginal
- original annotation that matchessupportsAnnotation(io.helidon.common.types.Annotation)
elementKind
- kind of element the annotation is on- Returns:
- list of annotations to add instead of the provided annotation (may be empty to remove it), this result is used to process other mappers (except for this one)
-