Class MPJReflectionKit

java.lang.Object
com.github.yulichang.toolkit.MPJReflectionKit

public final class MPJReflectionKit extends Object
反射工具类
Since:
1.3.7
Author:
yulichang
  • Constructor Details

    • MPJReflectionKit

      public MPJReflectionKit()
  • Method Details

    • getGenericType

      public static Class<?> getGenericType(Field field)
      Collection字段的泛型
    • getFieldMap

      public static Map<String,FieldCache> getFieldMap(Class<?> clazz)
      获取该类的所有属性列表
      Parameters:
      clazz - 反射类
    • getFieldList

      public static List<FieldCache> getFieldList(Class<?> clazz)
    • isPrimitiveOrWrapper

      public static boolean isPrimitiveOrWrapper(Class<?> clazz)
    • getFieldValue

      public static <T> T getFieldValue(Object object, String fieldName)