Package com.gengoai.annotation
Class AbstractServiceLikeAnnotation<T extends Annotation>
- java.lang.Object
-
- javax.annotation.processing.AbstractProcessor
-
- com.gengoai.annotation.AbstractServiceLikeAnnotation<T>
-
- All Implemented Interfaces:
Processor
- Direct Known Subclasses:
PreloadProcessor
public abstract class AbstractServiceLikeAnnotation<T extends Annotation> extends AbstractProcessor
-
-
Field Summary
-
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractServiceLikeAnnotation(String output_resource_name, Class<T> annotationClass)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description SourceVersion
getSupportedSourceVersion()
boolean
process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
protected abstract String
processElement(TypeElement e, Elements elements, T annotation)
-
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, init, isInitialized
-
-
-
-
Method Detail
-
getSupportedSourceVersion
public SourceVersion getSupportedSourceVersion()
- Specified by:
getSupportedSourceVersion
in interfaceProcessor
- Overrides:
getSupportedSourceVersion
in classAbstractProcessor
-
process
public final boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
- Specified by:
process
in interfaceProcessor
- Specified by:
process
in classAbstractProcessor
-
processElement
protected abstract String processElement(TypeElement e, Elements elements, T annotation)
-
-