return classMap.findMethod(name, params);
/** * Gets the method defined by <code>name</code> and * <code>params</code> for the Class <code>c</code>. * * @param c Class in which the method search is taking place * @param name Name of the method being searched for * @param params An array of Objects (not Classes) that describe the * the parameters * * @return The desired Method object. * @throws NullPointerException When the parameters passed in can not be used for introspection because null. * @throws MethodMap.AmbiguousException When the method map contains more than one match for the requested signature. */ public Method getMethod(final Class c, final String name, final Object[] params) throws MethodMap.AmbiguousException { IntrospectorCache ic = getIntrospectorCache(); ClassMap classMap = ic.get(Validate.notNull(c, "class object is null!")); if (classMap == null) { classMap = ic.put(c); } return classMap.findMethod(name, Validate.notNull(params, "params object is null!")); }
return classMap.findMethod(name, params);
return classMap.findMethod(name, params);