http://notatube.blogspot.fr/2010/11/project-lombok-trick-explained.html http://www.lteconsulting.fr/annotation-processing http://hannesdorfmann.com/annotation-processing/annotationprocessing101 http://docs.oracle.com/javase
service https://github.com/square/javapoet https://www.jianshu.com/p/0e48cdfedfca https://www.race604.com/annotation-processing
参考 https://www.race604.com/annotation-processing/ http://docs.oracle.com/javase/7/docs/api/javax/annotation tool.oschina.net/uploads/apidocs/jdk-zh/ https://github.com/greenrobot/EventBus http://hannesdorfmann.com/annotation-processing
www.hascode.com/2015/02/generating-java-source-files-with-javapoet/ Java注解处理器 http://www.race604.com/annotation-processing
---- 这里推荐你两篇文章: https://blog.csdn.net/qq_20009015/article/details/106038023 https://www.race604.com/annotation-processing
细心的同学会发现有一个 Annotation-Processing module,很显然这就是生成代码的代码。我们就拿其中的一个类进行分析好了。