Package org.jboss.logging.processor.apt
Class AbstractGenerator
java.lang.Object
org.jboss.logging.processor.apt.AbstractGenerator
- Direct Known Subclasses:
ImplementationClassGenerator
,ReportFileGenerator
,TranslationClassGenerator
,TranslationFileGenerator
An abstract processor used process annotations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ToolLogger
(package private) final ProcessingEnvironment
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractGenerator
(ProcessingEnvironment processingEnv) Constructs a new processor. -
Method Summary
Modifier and TypeMethodDescriptionfinal String
getName()
Returns the name of the processor.Returns the supported options set.(package private) final ToolLogger
logger()
Returns the logger to log messages with.abstract void
processTypeElement
(TypeElement annotation, TypeElement element, MessageInterface messageInterface) Processes a type element.
-
Field Details
-
logger
-
processingEnv
-
-
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 processingelement
- the element that contains the methods.messageInterface
- the message interface to implement.
-
logger
Returns the logger to log messages with.- Returns:
- the logger to log messages with.
-
getName
Returns the name of the processor.- Returns:
- the name of the processor.
-
getSupportedOptions
Returns the supported options set.- Returns:
- the supported options set or empty set if none
-