Package | Description |
---|---|
com.google.googlejavaformat.java |
Modifier and Type | Method and Description |
---|---|
static Replacement |
Replacement.create(int startPosition,
int endPosition,
String replaceWith) |
static Replacement |
Replacement.create(Range<Integer> range,
String replaceWith) |
Modifier and Type | Method and Description |
---|---|
List<Replacement> |
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.
|
ImmutableList<Replacement> |
JavaOutput.getFormatReplacements(RangeSet<Integer> iRangeSet0)
Emit a list of
Replacement s to convert from input to output. |
ImmutableList<Replacement> |
Formatter.getFormatReplacements(String input,
Collection<Range<Integer>> characterRanges)
Emit a list of
Replacement s to convert from input to output. |
Modifier and Type | Method and Description |
---|---|
static String |
JavaOutput.applyReplacements(String input,
List<Replacement> replacements) |
Copyright © 2015–2017 Google Inc.. All rights reserved.