public class SnippetFormatter
extends java.lang.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 |
---|---|
java.lang.String |
createIndentationString(int indentationLevel) |
java.util.List<Replacement> |
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.
|
public java.lang.String createIndentationString(int indentationLevel)
public java.util.List<Replacement> format(SnippetFormatter.SnippetKind kind, java.lang.String source, java.util.List<com.google.common.collect.Range<java.lang.Integer>> ranges, int initialIndent, boolean includeComments) throws FormatterException
FormatterException
Copyright © 2015-2018 Google Inc.. All Rights Reserved.