Class GemProcessor

  • All Implemented Interfaces:
    javax.annotation.processing.Processor

    @SupportedAnnotationTypes("org.mapstruct.tools.gem.GemDefinitions")
    public class GemProcessor
    extends javax.annotation.processing.AbstractProcessor
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<GemInfo> gemInfos  
      private Util util  
      • Fields inherited from class javax.annotation.processing.AbstractProcessor

        processingEnv
    • Constructor Summary

      Constructors 
      Constructor Description
      GemProcessor()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void addGemInfo​(javax.lang.model.element.AnnotationMirror gemDefinitionMirror, javax.lang.model.element.Element definingElement)  
      private GemValueType getGemValueType​(javax.lang.model.type.TypeMirror type, boolean isArray)  
      javax.lang.model.SourceVersion getSupportedSourceVersion()  
      private void postProcessGemInfo()  
      boolean process​(java.util.Set<? extends javax.lang.model.element.TypeElement> annotationTypes, javax.annotation.processing.RoundEnvironment roundEnv)  
      private void write()  
      • Methods inherited from class javax.annotation.processing.AbstractProcessor

        getCompletions, getSupportedAnnotationTypes, getSupportedOptions, init, isInitialized
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • util

        private Util util
      • gemInfos

        private java.util.List<GemInfo> gemInfos
    • Constructor Detail

      • GemProcessor

        public GemProcessor()
    • Method Detail

      • getSupportedSourceVersion

        public javax.lang.model.SourceVersion getSupportedSourceVersion()
        Specified by:
        getSupportedSourceVersion in interface javax.annotation.processing.Processor
        Overrides:
        getSupportedSourceVersion in class javax.annotation.processing.AbstractProcessor
      • process

        public boolean process​(java.util.Set<? extends javax.lang.model.element.TypeElement> annotationTypes,
                               javax.annotation.processing.RoundEnvironment roundEnv)
        Specified by:
        process in interface javax.annotation.processing.Processor
        Specified by:
        process in class javax.annotation.processing.AbstractProcessor
      • addGemInfo

        private void addGemInfo​(javax.lang.model.element.AnnotationMirror gemDefinitionMirror,
                                javax.lang.model.element.Element definingElement)
      • postProcessGemInfo

        private void postProcessGemInfo()
      • getGemValueType

        private GemValueType getGemValueType​(javax.lang.model.type.TypeMirror type,
                                             boolean isArray)
      • write

        private void write()