public class JavaImportsFormatter extends BaseImportsFormatter
Constructor and Description |
---|
JavaImportsFormatter() |
Modifier and Type | Method and Description |
---|---|
protected ImportPackage |
createImportPackage(String line) |
protected String |
doFormat(String content,
Pattern importPattern,
String packagePath,
String className) |
static String |
getImports(String content) |
createJavaImportPackage, format, format, sortAndGroupImports, stripUnusedImports
public static String getImports(String content)
protected ImportPackage createImportPackage(String line)
createImportPackage
in class BaseImportsFormatter
protected String doFormat(String content, Pattern importPattern, String packagePath, String className) throws IOException
doFormat
in class BaseImportsFormatter
IOException