com.google.common.collect.ImmutableList<Replacement> |
SnippetFormatter.format(SnippetFormatter.SnippetKind kind,
java.lang.String source,
java.util.List<com.google.common.collect.Range<java.lang.Integer>> ranges,
int initialIndent,
boolean includeComments) |
Runs the Google Java formatter on the given source, with only the given ranges specified.
|
com.google.common.collect.ImmutableList<Replacement> |
Formatter.getFormatReplacements(java.lang.String input,
java.util.Collection<com.google.common.collect.Range<java.lang.Integer>> characterRanges) |
Emit a list of Replacements to convert from input to output.
|
com.google.common.collect.ImmutableList<Replacement> |
JavaOutput.getFormatReplacements(com.google.common.collect.RangeSet<java.lang.Integer> iRangeSet0) |
Emit a list of Replacements to convert from input to output.
|
private static java.util.List<Replacement> |
SnippetFormatter.toReplacements(java.lang.String source,
java.lang.String replacement) |
Generates Replacements rewriting source to replacement, under the
assumption that they differ in whitespace alone.
|