public class ClassIndexProcessor extends AbstractProcessor
ClassIndex.processingEnv| Modifier | Constructor and Description |
|---|---|
|
ClassIndexProcessor() |
protected |
ClassIndexProcessor(Class<?>... classes)
Used when creating subclasses of the processor which will index some annotations
which cannot be itself annotated with
IndexAnnotated or IndexSubclasses. |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getSupportedAnnotationTypes() |
SourceVersion |
getSupportedSourceVersion() |
protected void |
indexAnnotations(Class<?>... classes)
Adds given annotations for indexing.
|
protected void |
indexPackages(String... packages)
Adds given package for indexing.
|
protected void |
indexSubclasses(Class<?>... classes)
Adds given classes for subclass indexing.
|
void |
init(ProcessingEnvironment processingEnv) |
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) |
getCompletions, getSupportedOptions, isInitializedpublic ClassIndexProcessor()
protected ClassIndexProcessor(Class<?>... classes)
IndexAnnotated or IndexSubclasses.classes - list of classes which the processor will be indexingprotected final void indexAnnotations(Class<?>... classes)
classes - classes to index annotationsprotected final void indexSubclasses(Class<?>... classes)
classes - classes to index subclassesprotected final void indexPackages(String... packages)
packages - packages to be indexedpublic SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion in interface ProcessorgetSupportedSourceVersion in class AbstractProcessorpublic Set<String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes in interface ProcessorgetSupportedAnnotationTypes in class AbstractProcessorpublic void init(ProcessingEnvironment processingEnv)
init in interface Processorinit in class AbstractProcessorpublic boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process in interface Processorprocess in class AbstractProcessorCopyright © 2019 WSO2. All rights reserved.