Class LoggingToolsProcessor

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

    @SupportedOptions({"debug","org.jboss.logging.tools.expressionProperties","org.jboss.logging.tools.addGeneratedAnnotation"})
    public class LoggingToolsProcessor
    extends javax.annotation.processing.AbstractProcessor
    The main annotation processor for JBoss Logging Tooling.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.util.Set<java.lang.String> createSupportedAnnotations​(java.lang.Class<? extends java.lang.annotation.Annotation>... annotations)  
      private void doProcess​(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment roundEnv)  
      java.util.Set<java.lang.String> getSupportedAnnotationTypes()  
      java.util.Set<java.lang.String> getSupportedOptions()  
      javax.lang.model.SourceVersion getSupportedSourceVersion()  
      void init​(javax.annotation.processing.ProcessingEnvironment processingEnv)  
      boolean process​(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment roundEnv)  
      private static javax.lang.model.element.Element resolveElement​(javax.lang.model.element.Element element)  
      • Methods inherited from class javax.annotation.processing.AbstractProcessor

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

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

      • EXPRESSION_PROPERTIES

        static final java.lang.String EXPRESSION_PROPERTIES
        See Also:
        Constant Field Values
      • ADD_GENERATED_ANNOTATION

        static final java.lang.String ADD_GENERATED_ANNOTATION
        See Also:
        Constant Field Values
      • interfaceAnnotations

        private final java.util.List<java.lang.String> interfaceAnnotations
      • supportedAnnotations

        private final java.util.Set<java.lang.String> supportedAnnotations
    • Constructor Detail

      • LoggingToolsProcessor

        public LoggingToolsProcessor()
        Default constructor.
    • Method Detail

      • 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
      • 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
      • process

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

        private void doProcess​(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations,
                               javax.annotation.processing.RoundEnvironment roundEnv)
      • createSupportedAnnotations

        @SafeVarargs
        private static java.util.Set<java.lang.String> createSupportedAnnotations​(java.lang.Class<? extends java.lang.annotation.Annotation>... annotations)
      • resolveElement

        private static javax.lang.model.element.Element resolveElement​(javax.lang.model.element.Element element)