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 Details

  • Method Details

    • singularInstanceOn

      protected org.mapstruct.ap.internal.gem.AnnotateWithGem singularInstanceOn(Element element)
      Specified by:
      singularInstanceOn in class RepeatableAnnotations<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:
      multipleInstanceOn in class RepeatableAnnotations<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:
      addInstance in class RepeatableAnnotations<org.mapstruct.ap.internal.gem.AnnotateWithGem,org.mapstruct.ap.internal.gem.AnnotateWithsGem,Annotation>
      Parameters:
      gem - the annotation gem to be processed
      source - the source element where the request originated from
      mappings - the collection of completed processing
    • addInstances

      protected void addInstances(org.mapstruct.ap.internal.gem.AnnotateWithsGem gem, Element source, Set<Annotation> mappings)
      Specified by:
      addInstances in class RepeatableAnnotations<org.mapstruct.ap.internal.gem.AnnotateWithGem,org.mapstruct.ap.internal.gem.AnnotateWithsGem,Annotation>
      Parameters:
      gem - the annotation gems to be processed
      source - the source element where the request originated from
      mappings - the collection of completed processing
    • getProcessedAnnotations

      public Set<Annotation> getProcessedAnnotations(Element source)
      Description copied from class: RepeatableAnnotations
      Retrieves the processed annotations.
      Overrides:
      getProcessedAnnotations in class RepeatableAnnotations<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