Package com.google.googlejavaformat.java
Class FormatFileCallable
java.lang.Object
com.google.googlejavaformat.java.FormatFileCallable
- All Implemented Interfaces:
Callable<FormatFileCallable.Result>
Encapsulates information about a file to be formatted, including which parts of the file to
format.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final JavaFormatterOptionsprivate final CommandLineOptionsprivate final Path -
Constructor Summary
ConstructorsConstructorDescriptionFormatFileCallable(CommandLineOptions parameters, Path path, String input, JavaFormatterOptions options) -
Method Summary
Modifier and TypeMethodDescriptioncall()private com.google.common.collect.RangeSet<Integer> characterRanges(String input) private StringfixImports(String input)
-
Field Details
-
path
-
input
-
parameters
-
options
-
-
Constructor Details
-
FormatFileCallable
public FormatFileCallable(CommandLineOptions parameters, Path path, String input, JavaFormatterOptions options)
-
-
Method Details
-
call
- Specified by:
callin interfaceCallable<FormatFileCallable.Result>
-
fixImports
- Throws:
FormatterException
-
characterRanges
-