Class对象功能:
获取功能:
1.获取成员变量们
Field[ ] getFields()
field getField()
Field[ ] getDeclaredFields()
Field getDeclaredField()
2.获取构造方法们
Constructor<?>[ ] getConstructors()
Constructor<T> getConstructor(类<?>......parameterType)
Constructor<T> getDeclaredConstructor(类<?>......parameterType)
Constructor<?>[ ] getDeclaredConstructors()
3.获取成员方法们
Method[ ] getMethods()
Method<T> getMethod(String name, 类<?>......parameterType)
Method[ ] getDeclaredMethods()
Method<T> getDeclaredMethod(String name, 类<?>......parameterType)
4.获取类名
String getName()
原文:https://www.cnblogs.com/KeepCalmAndNeverSayNever/p/13340540.html