docs: public void defineFunctionProperties(String[] names, Class<?> clazz,
                                           int attributes)
      {
          Method[] methods = FunctionObject.getMethodList(clazz);
          for (int i=0; i < names.length; i++) {
              String name = names[i];
              Method m = FunctionObject.findSingleMethod(methods, name);
              if (m == null) {
                  throw Context.reportRuntimeError2(
                      "msg.method.not.found", name, clazz.getName());
              }
              FunctionObject f = new FunctionObject(name, m, this);
              defineProperty(name, f, attributes);
          }
      }