public class SnippetFormatter extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SnippetFormatter.SnippetKind
The kind of snippet to format.
|
Constructor and Description |
---|
SnippetFormatter() |
Modifier and Type | Method and Description |
---|---|
String |
createIndentationString(int indentationLevel) |
List<Replacement> |
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.
|
public String createIndentationString(int indentationLevel)
public List<Replacement> format(SnippetFormatter.SnippetKind kind, String source, List<Range<Integer>> ranges, int initialIndent, boolean includeComments) throws FormatterException
FormatterException
Copyright © 2015–2017 Google Inc.. All rights reserved.