boolean fuzzyMatch(List<Type> paramTypes, List<Type> methodParamTypes) { List<Type> l1 = paramTypes; List<Type> l2 = methodParamTypes; while (l1.nonEmpty()) { if (!fuzzyMatch(l1.head, l2.head)) return false; l1 = l1.tail; l2 = l2.tail; } return true; }
boolean fuzzyMatch(List<Type> paramTypes, List<Type> methodParamTypes) { List<Type> l1 = paramTypes; List<Type> l2 = methodParamTypes; while (l1.nonEmpty()) { if (!fuzzyMatch(l1.head, l2.head)) return false; l1 = l1.tail; l2 = l2.tail; } return true; }
/** @see com.sun.tools.javadoc.ClassDocImpl */ private boolean hasParameterTypes(MethodSymbol method, List<Type> paramTypes) { if (paramTypes == null) return true; if (method.params().size() != paramTypes.size()) return false; List<Type> methodParamTypes = types.erasureRecursive(method.asType()).getParameterTypes(); return (Type.isErroneous(paramTypes)) ? fuzzyMatch(paramTypes, methodParamTypes) : types.isSameTypes(paramTypes, methodParamTypes); }
/** @see com.sun.tools.javadoc.ClassDocImpl */ private boolean hasParameterTypes(MethodSymbol method, List<Type> paramTypes) { if (paramTypes == null) return true; if (method.params().size() != paramTypes.size()) return false; List<Type> methodParamTypes = types.erasureRecursive(method.asType()).getParameterTypes(); return (Type.isErroneous(paramTypes)) ? fuzzyMatch(paramTypes, methodParamTypes) : types.isSameTypes(paramTypes, methodParamTypes); }