@SupportedAnnotationTypes(value="com.github.houbb.auto.log.annotation.AutoLog") @SupportedSourceVersion(value=RELEASE_7) public class AutoLogProcessor extends BaseMethodProcessor
AutoLog 对应的解释器messager, names, processContext, treeMaker, treesprocessingEnv| 构造器和说明 |
|---|
AutoLogProcessor() |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
private static final ILOG CLASS_LOG = new ConsoleLog();
2. 输出入参
3. 插入当前时间
4. 输出出参
5. 输出耗时handleMethod 在类中 BaseMethodProcessormethod - 单个方法息Copyright © 2020. All rights reserved.