コード例 #1
0
    private Method lookupMethod(
        Object obj, String methodName, Class[] methodParameters, HashMap methodCache) {
      Class objClass = obj.getClass();
      Object objMethod = methodCache.get(objClass);

      if (objMethod == null) {
        return cacheMethod(obj, methodName, methodParameters, methodCache);
      } else if (objMethod == NONE) {
        return null;
      } else {
        return (Method) objMethod;
      }
    }