Uses of Class
com.google.googlejavaformat.java.FormatterException
Packages that use FormatterException
-
Uses of FormatterException in com.google.googlejavaformat.java
Methods in com.google.googlejavaformat.java that return FormatterExceptionModifier and TypeMethodDescriptionstatic FormatterExceptionFormatterException.fromJavacDiagnostics(Iterable<Diagnostic<? extends JavaFileObject>> diagnostics) Methods in com.google.googlejavaformat.java that throw FormatterExceptionModifier and TypeMethodDescriptionJavaInput.characterRangesToTokenRanges(Collection<Range<Integer>> characterRanges) SnippetFormatter.format(SnippetFormatter.SnippetKind kind, String source, List<Range<Integer>> ranges, int initialIndent, boolean includeComments) Runs the Google Java formatter on the given source, with only the given ranges specified.voidFormatter.formatSource(CharSource input, CharSink output) Format the given input (a Java compilation unit) into the output stream.Formatter.formatSource(String input) Format an input string (a Java compilation unit) into an output string.Formatter.formatSource(String input, Collection<Range<Integer>> characterRanges) Format an input string (a Java compilation unit), for only the specified character ranges.Formatter.formatSourceAndFixImports(String input) Formats an input string (a Java compilation unit) and fixes imports.Formatter.getFormatReplacements(String input, Collection<Range<Integer>> characterRanges) Emit a list ofReplacements to convert from input to output.static StringRemoveUnusedImports.removeUnusedImports(String contents) static StringImportOrderer.reorderImports(String text) Deprecated.static StringImportOrderer.reorderImports(String text, JavaFormatterOptions.Style style) Reorder the inputs intext, a complete Java program.static StringReflows long string literals in the given Java source code.Constructors in com.google.googlejavaformat.java that throw FormatterException
ImportOrderer.reorderImports(String, Style)instead