public class Reflection extends Object
| Constructor and Description |
|---|
Reflection() |
| Modifier and Type | Method and Description |
|---|---|
String |
getClassName(Class<?> clazz)
获取类的名字
|
Field[] |
getDeclaredFields(Class<?> clazz)
获取类申明的字段
|
Method[] |
getDeclaredMethods(Class<?> clazz)
获取类申明的方法
|
Method[] |
getMethods(Class<?> clazz)
获取类所有公有的方法(包括父级)
|
Copyright © 2025. All rights reserved.