public abstract class AbstractAptProxyProcessor extends AbstractProcessor
processingEnv| 构造器和说明 |
|---|
AbstractAptProxyProcessor() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
addSupportedAnnotation(Class<? extends Annotation> annoClz)
添加支持的注解
|
Set<String> |
getSupportedAnnotationTypes()
支持的注解类型
|
SourceVersion |
getSupportedSourceVersion()
支持的版本
|
protected abstract void |
initSupportedAnnotation()
初始化支持的注解
|
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv)
处理:1.搜集信息 2.生成java源文件
|
getCompletions, getSupportedOptions, init, isInitializedprotected void addSupportedAnnotation(Class<? extends Annotation> annoClz)
protected abstract void initSupportedAnnotation()
public Set<String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes 在接口中 ProcessorgetSupportedAnnotationTypes 在类中 AbstractProcessorpublic SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion 在接口中 ProcessorgetSupportedSourceVersion 在类中 AbstractProcessorpublic boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process 在接口中 Processorprocess 在类中 AbstractProcessorCopyright © 2023. All rights reserved.