Package org.tentackle.buildsupport
Class AbstractTentackleProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
org.tentackle.buildsupport.AbstractTentackleProcessor
- All Implemented Interfaces:
Processor
- Direct Known Subclasses:
AnalyzeProcessor
Abstract tentackle annotation processor.
In order to avoid warnings, annotation processors should be annotated
with @SupportedOptions("verbosity").
- Author:
- harald
-
Field Summary
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Closes the resource- and source-manager.Gets the processing environment.getResourceManager(File directory) Gets a resource manager.Gets the resource managers.Gets the source directory.voidinit(ProcessingEnvironment processingEnv) booleanGets whether to log debug messages.booleanGets whether to log info messages.voidsetSourceDir(File sourceDir) Sets the source directory.Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, isInitialized, process
-
Constructor Details
-
AbstractTentackleProcessor
public AbstractTentackleProcessor()Creates an annotation processor.
-
-
Method Details
-
getSupportedSourceVersion
- Specified by:
getSupportedSourceVersionin interfaceProcessor- Overrides:
getSupportedSourceVersionin classAbstractProcessor
-
init
- Specified by:
initin interfaceProcessor- Overrides:
initin classAbstractProcessor
-
isInfoLogging
public boolean isInfoLogging()Gets whether to log info messages.- Returns:
- true if info logging
-
isDebugLogging
public boolean isDebugLogging()Gets whether to log debug messages.- Returns:
- true if debug logging
-
getResourceManager
Gets a resource manager.- Parameters:
directory- the base directory- Returns:
- the resource manager
-
getResourceManagers
Gets the resource managers.- Returns:
- the resource managers, never null
-
cleanup
Closes the resource- and source-manager.- Throws:
IOException- if cleanup failed
-
getProcessingEnvironment
Gets the processing environment.- Returns:
- the processing environment
-
getSourceDir
Gets the source directory.- Returns:
- the source file dir
-
setSourceDir
Sets the source directory.- Parameters:
sourceDir- the source dir
-