public boolean matches(Method method) { if (!symbol.contains(getMethodName(method))) { return false; } // if (!Modifier.isStatic(method.getModifiers()) && // !symbol.contains(method.getDeclaringClass().getSimpleName())) // return false; parse(); try { if (ref != null) { boolean res = ref.matches(method); if (!res && BridJ.debug) { BridJ.debug( "Symbol " + symbol + " was a good candidate but expected demangled signature " + ref + " did not match the method " + method); } return res; } } catch (Exception ex) { ex.printStackTrace(); } return false; }