@SupportedAnnotationTypes(value="com.github.houbb.lombok.ex.annotation.Sync") @SupportedSourceVersion(value=RELEASE_6) public class SyncProcessor extends BaseMethodProcessor
Sync 对应的解释器
ps: 这里也可以拓展为任意指定访问级别,但是这会造成混乱。
所以不建议改变 private 等访问级别。messager, names, processContext, treeMaker, treesprocessingEnv| 构造器和说明 |
|---|
SyncProcessor() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Class<? extends Annotation> |
getAnnotationClass()
获取抽象的注解类型
|
protected void |
handleMethod(LMethod method)
1.
|
getMethodList, processinitgetCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, isInitializedprotected Class<? extends Annotation> getAnnotationClass()
BaseMethodProcessorgetAnnotationClass 在类中 BaseMethodProcessorprotected void handleMethod(LMethod method)
handleMethod 在类中 BaseMethodProcessormethod - 单个方法息Copyright © 2020. All rights reserved.