类 PoiReflectorUtil

java.lang.Object
org.jeecgframework.poi.util.PoiReflectorUtil

public final class PoiReflectorUtil extends Object
反射工具类,缓存读取的class信息,省的一直获取
作者:
liusq
  • 方法详细资料

    • forClass

      public static PoiReflectorUtil forClass(Class<?> clazz)
    • fromCache

      public static PoiReflectorUtil fromCache(Class<?> clazz)
    • getGetMethod

      public Method getGetMethod(String propertyName)
    • getSetMethod

      public Method getSetMethod(String propertyName)
    • getValue

      public Object getValue(Object obj, String property)
      获取field 值
      参数:
      obj -
      property -
      返回:
    • setValue

      public boolean setValue(Object obj, String property, Object object)
      设置field值
      参数:
      obj - 对象
      property -
      object - 属性值
      返回:
    • getGetMethods

      public Map<String,Method> getGetMethods()
    • getFieldList

      public List<Field> getFieldList()
    • execEnumStaticMethod

      public Object execEnumStaticMethod(String staticMethod, Object params)