(String property)
| 95 | } |
| 96 | |
| 97 | private boolean hasSetterMethodFor(String property) { |
| 98 | String setterName = GeneralUtils.getSetterName(property); |
| 99 | for (Class<?> c = getClass(); !c.equals(Script.class); c = c.getSuperclass()) { |
| 100 | for (Method method : c.getDeclaredMethods()) { |
| 101 | if (method.getParameterCount() == 1 |
| 102 | // TODO: Test modifiers or return type? |
| 103 | && method.getName().equals(setterName)) { |
| 104 | return true; |
| 105 | } |
| 106 | } |
| 107 | } |
| 108 | return false; |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * Invoke a method (or closure in the binding) defined. |
no test coverage detected