-
Notifications
You must be signed in to change notification settings - Fork 784
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
2019-05-29:什么是反射机制?反射机制的应用场景有哪些? #65
Comments
Java 反射机制是在运行状态中,对于任意一个类,都能够知道这个类中的所有属性和方法,对于任意一个对象,都能够调用它的任意一个方法和属性;这种动态获取的信息以及动态调用对象的方法的功能称为 Java 语言的反射机制。
|
|
java反射机制是在运行状态中,对于任意一个类,都能够知道这个类的所有属性和方法;对于任意一个对象,都能调用它的任意一个方法和属性;这种动态获取的信息以及动态调用对象的方法的功能称为java语言的反射机制。 |
概念及介绍 JAVA反射机制是在运行状态中,对于任意一个类,都能够知道这个类的所有属性和方法 应用场景 |
反射主要体现在动态这个词,使用灵活、性价比高。 |
单纯的反射机制应用框架,例如 EventBus(事件总线)这个好像错了吧 eventbus并不是单纯的反射,只是少数用到了反射 其实还是使用apt |
ButterKnife 吧?EventBus用到APT 了? |
你去看看就知道了 |
还真是哈哈 |
可以的 |
对于一个类,能够访问其任意的属性和方法,包括私有属性。 |
No description provided.
The text was updated successfully, but these errors were encountered: