Package org.atteo.classindex.processor
Class ClassIndexProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
org.atteo.classindex.processor.ClassIndexProcessor
- All Implemented Interfaces:
Processor
Generates index files for
ClassIndex.-
Field Summary
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClassIndexProcessor(Class<?>... classes) Used when creating subclasses of the processor which will index some annotations which cannot be itself annotated withIndexAnnotatedorIndexSubclasses. -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidindexAnnotations(Class<?>... classes) Adds given annotations for indexing.protected final voidindexPackages(String... packages) Adds given package for indexing.protected final voidindexSubclasses(Class<?>... classes) Adds given classes for subclass indexing.voidinit(ProcessingEnvironment processingEnv) booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, isInitialized
-
Constructor Details
-
ClassIndexProcessor
public ClassIndexProcessor() -
ClassIndexProcessor
Used when creating subclasses of the processor which will index some annotations which cannot be itself annotated withIndexAnnotatedorIndexSubclasses.- Parameters:
classes- list of classes which the processor will be indexing
-
-
Method Details
-
indexAnnotations
Adds given annotations for indexing.- Parameters:
classes- classes to add
-
indexSubclasses
Adds given classes for subclass indexing.- Parameters:
classes- classed to add
-
indexPackages
Adds given package for indexing.- Parameters:
packages- packages to add
-
getSupportedSourceVersion
- Specified by:
getSupportedSourceVersionin interfaceProcessor- Overrides:
getSupportedSourceVersionin classAbstractProcessor
-
init
- Specified by:
initin interfaceProcessor- Overrides:
initin classAbstractProcessor
-
process
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-