Package org.mapstruct.ap.internal.util
Class RepeatableAnnotations<SINGULAR extends org.mapstruct.tools.gem.Gem,MULTIPLE extends org.mapstruct.tools.gem.Gem,OPTIONS>
- java.lang.Object
-
- org.mapstruct.ap.internal.util.RepeatableAnnotations<SINGULAR,MULTIPLE,OPTIONS>
-
- Direct Known Subclasses:
AdditionalAnnotationsBuilder
public abstract class RepeatableAnnotations<SINGULAR extends org.mapstruct.tools.gem.Gem,MULTIPLE extends org.mapstruct.tools.gem.Gem,OPTIONS> extends Object
- Author:
- Ben Zegveld
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RepeatableAnnotations(ElementUtils elementUtils, String singularFqn, String multipleFqn)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
addInstance(SINGULAR gem, Element source, Set<OPTIONS> mappings)
protected abstract void
addInstances(MULTIPLE gems, Element source, Set<OPTIONS> mappings)
Set<OPTIONS>
getProcessedAnnotations(Element source)
Retrieves the processed annotations.protected abstract MULTIPLE
multipleInstanceOn(Element element)
protected abstract SINGULAR
singularInstanceOn(Element element)
-
-
-
Constructor Detail
-
RepeatableAnnotations
protected RepeatableAnnotations(ElementUtils elementUtils, String singularFqn, String multipleFqn)
-
-
Method Detail
-
singularInstanceOn
protected abstract SINGULAR singularInstanceOn(Element element)
- Parameters:
element
- the element on which the Gem needs to be found- Returns:
- the Gem found on the element.
-
multipleInstanceOn
protected abstract MULTIPLE multipleInstanceOn(Element element)
- Parameters:
element
- the element on which the Gems needs to be found- Returns:
- the Gems found on the element.
-
addInstance
protected abstract void addInstance(SINGULAR gem, Element source, Set<OPTIONS> mappings)
- Parameters:
gem
- the annotation gem to be processedsource
- the source element where the request originated frommappings
- the collection of completed processing
-
addInstances
protected abstract void addInstances(MULTIPLE gems, Element source, Set<OPTIONS> mappings)
- Parameters:
gems
- the annotation gems to be processedsource
- the source element where the request originated frommappings
- the collection of completed processing
-
-