private static boolean classNameMatchesFileName ( ClassSymbol c , Env < AttrContext > env ) { return env . toplevel . sourcefile . isNameCompatible ( c . name . toString ( ) , JavaFileObject . Kind . SOURCE ) ; }
Does class have the same name as the file it appears in?