Package | Description |
---|---|
com.google.googlejavaformat.java |
Modifier and Type | Method and Description |
---|---|
static Replacement |
Replacement.create(int startPosition,
int endPosition,
java.lang.String replaceWith) |
static Replacement |
Replacement.create(com.google.common.collect.Range<java.lang.Integer> range,
java.lang.String replaceWith) |
Modifier and Type | Method and Description |
---|---|
java.util.List<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> |
JavaOutput.getFormatReplacements(com.google.common.collect.RangeSet<java.lang.Integer> iRangeSet0)
Emit a list of
Replacement s to convert from input to output. |
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
Replacement s to convert from input to output. |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
JavaOutput.applyReplacements(java.lang.String input,
java.util.List<Replacement> replacements) |
Copyright © 2015-2018 Google Inc.. All Rights Reserved.