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>
- Since:
- 1.5
- Author:
- Ben Zegveld
-
-
Constructor Summary
Constructors Constructor Description AdditionalAnnotationsBuilder(ElementUtils elementUtils, TypeFactory typeFactory, FormattingMessager messager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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)Set<Annotation>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 Detail
-
AdditionalAnnotationsBuilder
public AdditionalAnnotationsBuilder(ElementUtils elementUtils, TypeFactory typeFactory, FormattingMessager messager)
-
-
Method Detail
-
singularInstanceOn
protected org.mapstruct.ap.internal.gem.AnnotateWithGem singularInstanceOn(Element element)
- 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
protected org.mapstruct.ap.internal.gem.AnnotateWithsGem multipleInstanceOn(Element element)
- 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
public Set<Annotation> getProcessedAnnotations(Element source)
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
-
-