LocationMatcher implements Comparable<LocationMatcher> { public boolean matches(String packageName, String className, String methodName) { final boolean matchesClass = matchesAll(loc.method) ? matchesClassPattern(loc.clazz, className) : matchesPattern(loc.clazz, className); return matchesPattern(loc.pack, packageName) && matchesClass && matchesPattern(loc.method, methodName); } LocationMatcher(Location location); boolean matchesPackage(String packageName); boolean matchesClass(String className); boolean matchesPackageClass(String packageName, String className); boolean matches(String packageName, String className, String methodName); boolean matchesLanguage(Language language); int specificity(); String getPattern(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); @Override int compareTo(LocationMatcher p);  }
@Test void classMethodInner() { final LocationMatcher m = new LocationMatcher(Location.of("Cl#me")); assertFalse(m.matches("pa", "Cl$bla", "me")); }