public class ImportOrderer
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
reorderImports(java.lang.String text)
Reorder the inputs in
text , a complete Java program. |
public static java.lang.String reorderImports(java.lang.String text) throws FormatterException
text
, a complete Java program. On success, another complete Java
program is returned, which is the same as the original except the imports are in order.FormatterException
- if the input could not be parsed.Copyright © 2015-2018 Google Inc.. All Rights Reserved.