Class MeldProcessor

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

    @SupportedSourceVersion(RELEASE_11)
    @SupportedAnnotationTypes({"ch.raffael.meldioc.Configuration","ch.raffael.meldioc.Feature","ch.raffael.meldioc.Feature.Mount","ch.raffael.meldioc.Feature.DependsOn","ch.raffael.meldioc.Provision","ch.raffael.meldioc.ExtensionPoint","ch.raffael.meldioc.ExtensionPoint.Acceptor","ch.raffael.meldioc.Setup","ch.raffael.meldioc.Parameter","ch.raffael.meldioc.Parameter.Prefix"})
    @SupportedOptions("ch.raffael.meldioc.includeMessageId")
    public class MeldProcessor
    extends javax.annotation.processing.AbstractProcessor
    Main processor class.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String OPT_GENERATE_ON_ERRORS  
      static java.lang.String OPT_INCLUDE_MSG_ID  
      • Fields inherited from class javax.annotation.processing.AbstractProcessor

        processingEnv
    • Constructor Summary

      Constructors 
      Constructor Description
      MeldProcessor()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.String> getSupportedAnnotationTypes()  
      java.util.Set<java.lang.String> getSupportedOptions()  
      javax.lang.model.SourceVersion getSupportedSourceVersion()  
      boolean process​(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment roundEnv)  
      • Methods inherited from class javax.annotation.processing.AbstractProcessor

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

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

      • OPT_INCLUDE_MSG_ID

        public static final java.lang.String OPT_INCLUDE_MSG_ID
        See Also:
        Constant Field Values
      • OPT_GENERATE_ON_ERRORS

        public static final java.lang.String OPT_GENERATE_ON_ERRORS
        See Also:
        Constant Field Values
    • Constructor Detail

      • MeldProcessor

        public MeldProcessor()
    • Method Detail

      • process

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

        public java.util.Set<java.lang.String> getSupportedOptions()
        Specified by:
        getSupportedOptions in interface javax.annotation.processing.Processor
        Overrides:
        getSupportedOptions in class javax.annotation.processing.AbstractProcessor
      • getSupportedAnnotationTypes

        public java.util.Set<java.lang.String> getSupportedAnnotationTypes()
        Specified by:
        getSupportedAnnotationTypes in interface javax.annotation.processing.Processor
        Overrides:
        getSupportedAnnotationTypes in class javax.annotation.processing.AbstractProcessor
      • getSupportedSourceVersion

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