- java.lang.Object
-
- javax.annotation.processing.AbstractProcessor
-
- uk.autores.processing.ResourceFilesProcessor
-
- All Implemented Interfaces:
Processor
public final class ResourceFilesProcessor extends AbstractProcessor
Processes classpath resource files and passes them toHandler.handle(Context)
.
-
-
Field Summary
-
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
-
-
Constructor Summary
Constructors Constructor Description ResourceFilesProcessor()
Public constructor as per contract
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getSupportedAnnotationTypes()
Supported annotations.SourceVersion
getSupportedSourceVersion()
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
-
-
-
-
Method Detail
-
getSupportedSourceVersion
public SourceVersion getSupportedSourceVersion()
ReturnsProcessingEnvironment.getSourceVersion()
or the minimumSourceVersion.RELEASE_11
.- Specified by:
getSupportedSourceVersion
in interfaceProcessor
- Overrides:
getSupportedSourceVersion
in classAbstractProcessor
- Returns:
- current source version
-
getSupportedAnnotationTypes
public Set<String> getSupportedAnnotationTypes()
Supported annotations.- Specified by:
getSupportedAnnotationTypes
in interfaceProcessor
- Overrides:
getSupportedAnnotationTypes
in classAbstractProcessor
- Returns:
ResourceFiles
andRepeatableResources
-
process
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
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
-
-