- java.lang.Object
-
- javax.annotation.processing.AbstractProcessor
-
- uk.autores.processors.ResourceFilesProcessor
-
- All Implemented Interfaces:
Processor
public final class ResourceFilesProcessor extends AbstractProcessor
Processes classpath resource files and passes them toHandler.handle(Context). This type is not intended to be public API but must be visible for annotation processing.
-
-
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.SourceVersiongetSupportedSourceVersion()ReturnsProcessingEnvironment.getSourceVersion()or the minimumSourceVersion.RELEASE_11.booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)ConsumesResourceFilesandRepeatableResourcesand 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:
getSupportedSourceVersionin interfaceProcessor- Overrides:
getSupportedSourceVersionin classAbstractProcessor- Returns:
- current source version
-
getSupportedAnnotationTypes
public Set<String> getSupportedAnnotationTypes()
Supported annotations.- Specified by:
getSupportedAnnotationTypesin interfaceProcessor- Overrides:
getSupportedAnnotationTypesin classAbstractProcessor- Returns:
ResourceFilesandRepeatableResources
-
process
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
ConsumesResourceFilesandRepeatableResourcesand passes derived information to the specifiedHandler.- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor- Parameters:
annotations- the annotation types requested to be processedroundEnv- environment for information about the current and prior round- Returns:
- true if annotation consumed
-
-