*
* @see com.gwtent.client.reflection.ClassType#findMethod(java.lang.String,
* com.gwtent.client.reflection.Type[])
*/
public Method findMethod(String name, Type[] paramTypes) {
Method method = null;
if (paramTypes == null)
paramTypes = new Type[] {};
Method[] overloads = getOverloads(name);
for (int i = 0; i < overloads.length; i++) {
Method candidate = overloads[i];
if (((MethodImpl) candidate).hasParamTypes(paramTypes)) {
method = candidate;
}
}