MCPcopy Create free account
hub / github.com/0opslab/opslabJutil / getProperty

Method getProperty

src/main/java/com/opslab/helper/BeanHepler.java:160–163  ·  view source on GitHub ↗

获取对象的属性 @param bean 判断的目标bean @param pro 判断的属性 @return 属性对应的值 @throws InvocationTargetException @throws IllegalAccessException

(Object bean, String pro)

Source from the content-addressed store, hash-verified

158 * @throws IllegalAccessException
159 */
160 public static Object getProperty(Object bean, String pro) throws InvocationTargetException, IllegalAccessException {
161 add(bean);
162 return readMethod(bean, getReadMethod(bean, pro));
163 }
164
165 /**
166 * 获取对象的属性

Callers 9

testGetPropertiesMethod · 0.95
testmainMethod · 0.80
testMethod · 0.80
TestUtilClass · 0.80
keyMethod · 0.80
GetValueByKeyMethod · 0.80
propertiesMethod · 0.80
appendLineMethod · 0.80

Calls 3

addMethod · 0.95
readMethodMethod · 0.95
getReadMethodMethod · 0.95

Tested by 4

testGetPropertiesMethod · 0.76
testmainMethod · 0.64
testMethod · 0.64