Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于源码时注解和编译时注解的使用场景? #18

Open
zqwxmao opened this issue May 11, 2020 · 0 comments
Open

关于源码时注解和编译时注解的使用场景? #18

zqwxmao opened this issue May 11, 2020 · 0 comments

Comments

@zqwxmao
Copy link

zqwxmao commented May 11, 2020

有个问题请教一下。
源码时注解既然和编译时注解都可以在注解处理器中处理,只不过一个是处理完被遗弃,另一个是处理完保存在class中,那就实现功能来说,感觉两者都可以做到同样的功能,生成代码啊,类似GreenDao那样子的。
所以不太明白的是到底使用区别在哪里?
目前能想到的就是说源码时注解没有保存在class中,如果这里是如果,如果说通过反编译class文件,确实查不到源码时注解, 而编译时注解可以通过这种方式查到相关信息,再就没有想到什么了。

可以的话希望大家讨论一下,博主也可以指点一二。 (●'◡'●)已star 写得很细呐~~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant