private static Method getWriteMethodIgnore(Object obj, String pro) { BeanStruct st = simplePropertiesIgnore(obj).get(pro); return st.getWriteMethod(); }
/** * 判断自己定义的而非继承的属性pro是否存在 * * @param bean 判断的目标bean * @param pro 判断的属性 * @return 是否存在 */ public static boolean hasDeclaredProperty(Object bean, String pro) { add(bean); Map map = simpleProperties(bean); BeanStruct st = (BeanStruct) map.get(pro); return valid.valid(st) && st.isDeclared(); }
private static Method getReadMethod(Object obj, String pro) { BeanStruct st = simpleProperties(obj).get(pro); return st.getReadMethod(); }