public final class PoiReflectorUtil extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
execEnumStaticMethod(String staticMethod,
Object params) |
static PoiReflectorUtil |
forClass(Class<?> clazz) |
static PoiReflectorUtil |
fromCache(Class<?> clazz) |
List<Field> |
getFieldList() |
Method |
getGetMethod(String propertyName) |
Map<String,Method> |
getGetMethods() |
Method |
getSetMethod(String propertyName) |
Object |
getValue(Object obj,
String property)
获取field 值
|
boolean |
setValue(Object obj,
String property,
Object object)
设置field值
|
public static PoiReflectorUtil forClass(Class<?> clazz)
public static PoiReflectorUtil fromCache(Class<?> clazz)
public boolean setValue(Object obj, String property, Object object)
obj - 对象property - object - 属性值Copyright © 2024. All rights reserved.