【Groovy】编译时元编程 ( 利用注解进行 AST 语法树转换 | 定义注解并使用 GroovyASTTransformationClass 注明 AST 转换接口 | AST 转换接口实现 )一、利用注解进行 AST 语法树转换
一、利用注解进行 AST 语法树转换、1、定义注解并使用 GroovyASTTransformationClass 注明 AST 转换接口、2、AST 转换接口实现、3、定义 Groovy 类并使用 @Compile 注解修饰需要拦截的方法、4、执行结果、