class Compilations {

    @VisibleForTesting
    static String getPublicClassName(String source) {
        Matcher matcher = CLASS_NAME_PATTERN.matcher(source);
        if (matcher.find()) {
            return getPackagePrefix(source) + matcher.group(1);
        } else {
            return "";
        }
    }

    private  Compilations();

}