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, isInitialized
public ClassIndexProcessor()
protected ClassIndexProcessor(Class<?>... classes)
IndexAnnotated
or IndexSubclasses
.classes
- list of classes which the processor will be indexingprotected final void indexAnnotations(Class<?>... classes)
protected final void indexSubclasses(Class<?>... classes)
protected final void indexPackages(String... packages)
public SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion
in interface Processor
getSupportedSourceVersion
in class AbstractProcessor
public Set<String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes
in interface Processor
getSupportedAnnotationTypes
in class AbstractProcessor
public void init(ProcessingEnvironment processingEnv)
init
in interface Processor
init
in class AbstractProcessor
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process
in interface Processor
process
in class AbstractProcessor
Copyright © 2014 Atteo. All rights reserved.