Method method = TargetClass.getDeclaredMethod(methodName,argClasses);method.setAccessible(true);return method.invoke(targetObject,argObjects);, i I k; q- g: a2 U0 o+ x+ A0 T3 Y) m2 L
对于字段: % m1 m' m; f' d( A
Field field = TargetClass.getDeclaredField(fieldName);field.setAccessible(true);field.set(object,value); 1 p7 M0 m4 {$ D" Y7 C9 V! _