Class MetaAnnotations<G extends org.mapstruct.tools.gem.Gem,V>

java.lang.Object
org.mapstruct.ap.internal.util.MetaAnnotations<G,V>
Type Parameters:
G - The type of the processed annotation
V - The type of the underlying holder for the processed annotation

public abstract class MetaAnnotations<G extends org.mapstruct.tools.gem.Gem,V> extends Object
A base helper class that provides utility methods for working with meta annotations.
Author:
Filip Hrisafov
  • Constructor Details

    • MetaAnnotations

      protected MetaAnnotations(ElementUtils elementUtils, String annotationFqn)
  • Method Details

    • getProcessedAnnotations

      public Set<V> getProcessedAnnotations(Element source)
      Retrieves the processed annotations.
      Parameters:
      source - The source element of interest
      Returns:
      The processed annotations for the given element
    • instanceOn

      protected abstract G instanceOn(Element element)
    • addInstance

      protected abstract void addInstance(G gem, Element source, Set<V> values)