getFields:获取所有公共的public修饰的方法,包括父类的方法
getDeclaredFields:获取所有本类声明的方法,包括private修饰的,但是不包含父类的方法。
类似的还有 getMethods 与 getDecalredMethods, getConstructors()和getDeclaredConstructors();
getFields:获取所有公共的public修饰的方法,包括父类的方法
getDeclaredFields:获取所有本类声明的方法,包括private修饰的,但是不包含父类的方法。
类似的还有 getMethods 与 getDecalredMethods, getConstructors()和getDeclaredConstructors();
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。