MCPcopy Index your code
hub / github.com/beanshell/beanshell / setObjectProperty

Method setObjectProperty

src/bsh/Reflect.java:765–776  ·  view source on GitHub ↗
(Object obj, String propName, Object value)

Source from the content-addressed store, hash-verified

763
764
765 public static void setObjectProperty(Object obj, String propName, Object value) throws ReflectError, UtilEvalError {
766 String accessorName = accessorName("set", propName);
767 Object[] args = new Object[]{value};
768
769 Interpreter.debug("property access: ");
770 try {
771 Method method = resolveExpectedJavaMethod(null/*bcm*/, obj.getClass(), obj, accessorName, args, false);
772 invokeMethod(method, obj, args);
773 } catch (InvocationTargetException e) {
774 throw new UtilEvalError("Property accessor threw exception: " + e.getTargetException());
775 }
776 }
777
778
779 /**

Callers 1

assignMethod · 0.95

Calls 5

accessorNameMethod · 0.95
debugMethod · 0.95
invokeMethodMethod · 0.95
getClassMethod · 0.80

Tested by

no test coverage detected