Class AbstractGenerator

java.lang.Object
org.jboss.logging.processor.apt.AbstractGenerator
Direct Known Subclasses:
ImplementationClassGenerator, ReportFileGenerator, TranslationClassGenerator, TranslationFileGenerator

public abstract class AbstractGenerator extends Object
An abstract processor used process annotations.
  • Field Details

  • Constructor Details

    • AbstractGenerator

      AbstractGenerator(ProcessingEnvironment processingEnv)
      Constructs a new processor.
      Parameters:
      processingEnv - the processing environment.
  • Method Details

    • processTypeElement

      public abstract void processTypeElement(TypeElement annotation, TypeElement element, MessageInterface messageInterface)
      Processes a type element.
      Parameters:
      annotation - the annotation who trigger the processing
      element - the element that contains the methods.
      messageInterface - the message interface to implement.
    • logger

      final ToolLogger logger()
      Returns the logger to log messages with.
      Returns:
      the logger to log messages with.
    • getName

      public final String getName()
      Returns the name of the processor.
      Returns:
      the name of the processor.
    • getSupportedOptions

      public final Set<String> getSupportedOptions()
      Returns the supported options set.
      Returns:
      the supported options set or empty set if none