Class FieldUtil
java.lang.Object
com.sure.tool.bean.FieldUtil
字段操作工具类,参考 Hutool 的
FieldUtil 设计。- Since:
- 0.1.0
- Author:
- suretool
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectgetConstantValue(Class<?> clazz, String fieldName) 读取静态常量值。static Field按名称查找字段(含父类)。getFieldNames(Class<?> clazz) 获取字段名列表。static Field[]获取类层级上的全部声明字段(子类优先,按声明顺序,重名字段去重)。static boolean字段是否 public。
-
Method Details
-
getFields
-
getFieldNames
-
getField
-
isPublic
-
getConstantValue
-