java.lang.Object
javax.annotation.processing.AbstractProcessor
uk.autores.processing.ResourceFilesProcessor
- All Implemented Interfaces:
Processor
Processes classpath resource files and passes them to
Handler.handle(Context)
.-
Field Summary
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSupported annotations.ReturnsProcessingEnvironment.getSourceVersion()
or the minimumSourceVersion.RELEASE_11
.boolean
process
(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) ConsumesResourceFiles
andRepeatableResources
and passes derived information to the specifiedHandler
.Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedOptions, init, isInitialized
-
Constructor Details
-
ResourceFilesProcessor
public ResourceFilesProcessor()Public constructor as per contract
-
-
Method Details
-
getSupportedSourceVersion
ReturnsProcessingEnvironment.getSourceVersion()
or the minimumSourceVersion.RELEASE_11
.- Specified by:
getSupportedSourceVersion
in interfaceProcessor
- Overrides:
getSupportedSourceVersion
in classAbstractProcessor
- Returns:
- current source version
-
getSupportedAnnotationTypes
Supported annotations.- Specified by:
getSupportedAnnotationTypes
in interfaceProcessor
- Overrides:
getSupportedAnnotationTypes
in classAbstractProcessor
- Returns:
ResourceFiles
andRepeatableResources
-
process
ConsumesResourceFiles
andRepeatableResources
and passes derived information to the specifiedHandler
.- Specified by:
process
in interfaceProcessor
- Specified by:
process
in classAbstractProcessor
- Parameters:
annotations
- the annotation types requested to be processedroundEnv
- environment for information about the current and prior round- Returns:
- true if annotation consumed
-