Package | Description |
---|---|
com.google.googlejavaformat.java |
Modifier and Type | Method and Description |
---|---|
void |
Formatter.formatSource(CharSource input,
CharSink output)
Format the given input (a Java compilation unit) into the output stream.
|
String |
Formatter.formatSource(String input)
Format an input string (a Java compilation unit) into an output string.
|
String |
Formatter.formatSource(String input,
List<Range<Integer>> characterRanges)
Format an input string (a compilation), for only the specified character ranges.
|
ImmutableList<Replacement> |
Formatter.getFormatReplacements(String input,
List<Range<Integer>> characterRanges)
Emit a list of
Replacement s to convert from input to output. |
Constructor and Description |
---|
JavaInput(String filename,
String text)
Input constructor.
|
Copyright © 2015 Google Inc.. All rights reserved.