Uses of Class
com.google.googlejavaformat.java.FormatterException
Packages that use FormatterException
-
Uses of FormatterException in com.google.googlejavaformat.java
Fields in com.google.googlejavaformat.java declared as FormatterExceptionModifier and TypeFieldDescriptionprivate final @Nullable FormatterExceptionAutoValue_FormatFileCallable_Result.exceptionMethods in com.google.googlejavaformat.java that return FormatterExceptionModifier and TypeMethodDescription(package private) @Nullable FormatterExceptionAutoValue_FormatFileCallable_Result.exception()(package private) abstract @Nullable FormatterExceptionFormatFileCallable.Result.exception()static FormatterExceptionFormatterException.fromJavacDiagnostics(Iterable<Diagnostic<? extends JavaFileObject>> diagnostics) Methods in com.google.googlejavaformat.java with parameters of type FormatterExceptionModifier and TypeMethodDescription(package private) static FormatFileCallable.ResultFormatFileCallable.Result.create(@Nullable Path path, String input, @Nullable String output, @Nullable FormatterException exception) Methods in com.google.googlejavaformat.java that throw FormatterExceptionModifier and TypeMethodDescriptionprivate static JavaInputModifierOrderer.applyReplacements(JavaInput javaInput, com.google.common.collect.TreeRangeMap<Integer, String> replacementMap) Applies replacements to the given string.private static StringStringWrapper.applyReplacements(String javaInput, com.google.common.collect.TreeRangeMap<Integer, String> replacementMap) Applies replacements to the given string.private com.google.common.collect.ImmutableList<JavaInput.Tok> Lex the input and build the list of toks.(package private) static com.google.common.collect.ImmutableList<JavaInput.Tok> JavaInput.buildToks(String text, com.google.common.collect.ImmutableSet<com.sun.tools.javac.parser.Tokens.TokenKind> stopTokens) Lex the input and build the list of toks.com.google.common.collect.RangeSet<Integer> JavaInput.characterRangesToTokenRanges(Collection<com.google.common.collect.Range<Integer>> characterRanges) (package private) com.google.common.collect.Range<Integer> JavaInput.characterRangeToTokenRange(com.google.common.collect.Range<Integer> characterRange) Convert from a character range to a token range.private StringFormatFileCallable.fixImports(String input) (package private) static voidFormatter.format(JavaInput javaInput, JavaOutput javaOutput, JavaFormatterOptions options) Construct aFormattergiven a Java compilation unit.com.google.common.collect.ImmutableList<Replacement> SnippetFormatter.format(SnippetFormatter.SnippetKind kind, String source, List<com.google.common.collect.Range<Integer>> ranges, int initialIndent, boolean includeComments) Runs the Google Java formatter on the given source, with only the given ranges specified.voidFormatter.formatSource(com.google.common.io.CharSource input, com.google.common.io.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<com.google.common.collect.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.com.google.common.collect.ImmutableList<Replacement> Formatter.getFormatReplacements(String input, Collection<com.google.common.collect.Range<Integer>> characterRanges) Emit a list ofReplacements to convert from input to output.StringWrapper.getReflowReplacements(int columnLimit, String input) private static com.sun.tools.javac.tree.JCTree.JCCompilationUnitprivate static com.sun.tools.javac.tree.JCTree.JCCompilationUnitParses the given Java source.static StringRemoveUnusedImports.removeUnusedImports(String contents) private StringImportOrderer.reorderImports()static StringImportOrderer.reorderImports(String text) Deprecated.static StringImportOrderer.reorderImports(String text, JavaFormatterOptions.Style style) Reorder the inputs intext, a complete Java program.(package private) static JavaInputModifierOrderer.reorderModifiers(JavaInput javaInput, Collection<com.google.common.collect.Range<Integer>> characterRanges) Reorders all modifiers in the given text and within the given character ranges to be in JLS order.(package private) static JavaInputModifierOrderer.reorderModifiers(String text) Reorders all modifiers in the given text to be in JLS order.private ImportOrderer.StringAndIndexImportOrderer.scanImported(int start) Scans the imported thing, the dot-separated name that comes after import [static] and before the semicolon.private ImportOrderer.ImportsAndIndexImportOrderer.scanImports(int i) Scans a sequence of import lines.(package private) static StringReflows string literals in the given Java source code that extend past the given column limit.static StringReflows long string literals in the given Java source code.Constructors in com.google.googlejavaformat.java with parameters of type FormatterExceptionModifierConstructorDescription(package private)AutoValue_FormatFileCallable_Result(@Nullable Path path, String input, @Nullable String output, @Nullable FormatterException exception) Constructors in com.google.googlejavaformat.java that throw FormatterException
ImportOrderer.reorderImports(String, Style)instead