public class ReflectionKit extends Object
反射工具类
| 构造器和说明 |
|---|
ReflectionKit() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
checkFieldValueNotNull(Object bean)
调用对象的get方法检查对象所有属性是否为null
|
static String |
getMethodCapitalize(String str)
反射 method 方法名,例如 getId
|
static Object |
getMethodValue(Class<?> cls,
Object entity,
String str)
获取 public get方法的值
|
static Object |
getMethodValue(Object entity,
String str)
获取 public get方法的值
|
public static String getMethodCapitalize(String str)
反射 method 方法名,例如 getId
str - 属性字符串内容public static Object getMethodValue(Class<?> cls, Object entity, String str)
cls - entity - 实体str - 属性字符串内容public static Object getMethodValue(Object entity, String str)
entity - 实体str - 属性字符串内容public static boolean checkFieldValueNotNull(Object bean)
bean - 检查对象Copyright © 2016. All rights reserved.