class 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);
    }

    public  LocationMatcher(Location location);

}