Package org.mapstruct.ap.internal.model
Class AdditionalAnnotationsBuilder
java.lang.Object
org.mapstruct.ap.internal.util.RepeatableAnnotations<org.mapstruct.ap.internal.gem.AnnotateWithGem,org.mapstruct.ap.internal.gem.AnnotateWithsGem,Annotation>
org.mapstruct.ap.internal.model.AdditionalAnnotationsBuilder
public class AdditionalAnnotationsBuilder
extends RepeatableAnnotations<org.mapstruct.ap.internal.gem.AnnotateWithGem,org.mapstruct.ap.internal.gem.AnnotateWithsGem,Annotation>
Helper class which is responsible for collecting all additional annotations that should be added.
- Since:
- 1.5
- Author:
- Ben Zegveld
-
Constructor Summary
ConstructorsConstructorDescriptionAdditionalAnnotationsBuilder(ElementUtils elementUtils, TypeFactory typeFactory, FormattingMessager messager) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddInstance(org.mapstruct.ap.internal.gem.AnnotateWithGem gem, Element source, Set<Annotation> mappings) protected voidaddInstances(org.mapstruct.ap.internal.gem.AnnotateWithsGem gem, Element source, Set<Annotation> mappings) getProcessedAnnotations(Element source) Retrieves the processed annotations.protected org.mapstruct.ap.internal.gem.AnnotateWithsGemmultipleInstanceOn(Element element) protected org.mapstruct.ap.internal.gem.AnnotateWithGemsingularInstanceOn(Element element)
-
Constructor Details
-
AdditionalAnnotationsBuilder
public AdditionalAnnotationsBuilder(ElementUtils elementUtils, TypeFactory typeFactory, FormattingMessager messager)
-
-
Method Details
-
singularInstanceOn
- Specified by:
singularInstanceOnin classRepeatableAnnotations<org.mapstruct.ap.internal.gem.AnnotateWithGem,org.mapstruct.ap.internal.gem.AnnotateWithsGem, Annotation> - Parameters:
element- the element on which the Gem needs to be found- Returns:
- the Gem found on the element.
-
multipleInstanceOn
- Specified by:
multipleInstanceOnin classRepeatableAnnotations<org.mapstruct.ap.internal.gem.AnnotateWithGem,org.mapstruct.ap.internal.gem.AnnotateWithsGem, Annotation> - Parameters:
element- the element on which the Gems needs to be found- Returns:
- the Gems found on the element.
-
addInstance
protected void addInstance(org.mapstruct.ap.internal.gem.AnnotateWithGem gem, Element source, Set<Annotation> mappings) - Specified by:
addInstancein classRepeatableAnnotations<org.mapstruct.ap.internal.gem.AnnotateWithGem,org.mapstruct.ap.internal.gem.AnnotateWithsGem, Annotation> - Parameters:
gem- the annotation gem to be processedsource- the source element where the request originated frommappings- the collection of completed processing
-
addInstances
protected void addInstances(org.mapstruct.ap.internal.gem.AnnotateWithsGem gem, Element source, Set<Annotation> mappings) - Specified by:
addInstancesin classRepeatableAnnotations<org.mapstruct.ap.internal.gem.AnnotateWithGem,org.mapstruct.ap.internal.gem.AnnotateWithsGem, Annotation> - Parameters:
gem- the annotation gems to be processedsource- the source element where the request originated frommappings- the collection of completed processing
-
getProcessedAnnotations
Description copied from class:RepeatableAnnotationsRetrieves the processed annotations.- Overrides:
getProcessedAnnotationsin classRepeatableAnnotations<org.mapstruct.ap.internal.gem.AnnotateWithGem,org.mapstruct.ap.internal.gem.AnnotateWithsGem, Annotation> - Parameters:
source- The source element of interest- Returns:
- The processed annotations for the given element
-