public boolean isMatch(ApiMethod otherMethod) { Class otherParams[] = otherMethod.getParameterTypes(); if (otherParams.length != _methodParams.size()) return false; for (int i = 0; i < otherParams.length; i++) { if (!_methodParams.get(i).equals(otherParams[i])) return false; } return true; }
public boolean isMatch(ApiMethod method, String intf) { if (method == null) return _methodName.equals("*"); else return isMatch(method.getName(), method.getParameterTypes(), intf); }