Class GeneratorInitializingProcessor

  • All Implemented Interfaces:
    javax.annotation.processing.Processor
    Direct Known Subclasses:
    ConverterMapperProcessor

    public abstract class GeneratorInitializingProcessor
    extends javax.annotation.processing.AbstractProcessor
    • Field Summary

      • Fields inherited from class javax.annotation.processing.AbstractProcessor

        processingEnv
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.lang.model.SourceVersion getSupportedSourceVersion()  
      void init​(javax.annotation.processing.ProcessingEnvironment processingEnv)  
      protected java.io.Writer openSourceFile​(java.util.function.Supplier<com.squareup.javapoet.ClassName> classNameSupplier)  
      • Methods inherited from class javax.annotation.processing.AbstractProcessor

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

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

      • GeneratorInitializingProcessor

        protected GeneratorInitializingProcessor​(Generator... generators)
    • Method Detail

      • init

        public void init​(javax.annotation.processing.ProcessingEnvironment processingEnv)
        Specified by:
        init in interface javax.annotation.processing.Processor
        Overrides:
        init in class javax.annotation.processing.AbstractProcessor
      • getSupportedSourceVersion

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

        protected final java.io.Writer openSourceFile​(java.util.function.Supplier<com.squareup.javapoet.ClassName> classNameSupplier)
                                               throws java.io.IOException
        Throws:
        java.io.IOException