public final class PoiReflectorUtil extends Object
Modifier and Type | Method and Description |
---|---|
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 Object getValue(Object obj, String property)
obj
- property
- public boolean setValue(Object obj, String property, Object object)
obj
- 对象property
- object
- 属性值Copyright © 2018 Lumer. All rights reserved.