Skip to content

APT(Annotation Processing Tool 的简称),可以在代码编译期解析注解,并且生成新的 Java 文件,减少手动的代码输入。现在有很多主流库都用上了 APT,比如 Dagger2, ButterKnife, EventBus3 等

Notifications You must be signed in to change notification settings

wadexi/android_apt_study

Repository files navigation

android_apt_study

APT(Annotation Processing Tool 的简称), 可以在代码编译期解析注解,并且生成新的 Java 文件,减少手动的代码输入。 现在有很多主流库都用上了 APT,比如 Dagger2, ButterKnife, EventBus3 等

https://github.com/google/auto https://github.com/square/javapoet

auto-service当前项目用的版本是1.0-rc4 javapoet 当前项目使用的版本是 1.10.0

参考文章链接:http://blog.csdn.net/hj7jay/article/details/52180023 http://blog.csdn.net/crazy1235/article/details/51876192 http://blog.csdn.net/xx326664162/article/details/68490059 https://juejin.im/entry/58fefebf8d6d810058a610de/

About

APT(Annotation Processing Tool 的简称),可以在代码编译期解析注解,并且生成新的 Java 文件,减少手动的代码输入。现在有很多主流库都用上了 APT,比如 Dagger2, ButterKnife, EventBus3 等

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages