public class JavaFormatterOptions extends Object
Like gofmt, the google-java-format CLI exposes no configuration
options (aside from --aosp
).
The goal of google-java-format is to provide consistent formatting, and to free developers from arguments over style choices. It is an explicit non-goal to support developers' individual preferences, and in fact it would work directly against our primary goals.
This class exists primarily to distinguish between Google Java Style mode and
--aosp
mode. It also provides a configuration that enables the
Eclipse Javadoc formatter until
google-java-
format#7 is resolved.
Modifier and Type | Class and Description |
---|---|
static class |
JavaFormatterOptions.JavadocFormatter |
static class |
JavaFormatterOptions.SortImports |
static class |
JavaFormatterOptions.Style |
Constructor and Description |
---|
JavaFormatterOptions(JavaFormatterOptions.JavadocFormatter javadocFormatter,
JavaFormatterOptions.Style style,
JavaFormatterOptions.SortImports sortImports) |
Modifier and Type | Method and Description |
---|---|
int |
indentationMultiplier()
Returns the multiplier for the unit of indent
|
JavaFormatterOptions.JavadocFormatter |
javadocFormatter()
Returns the Javadoc formatter.
|
int |
maxLineLength()
Returns the maximum formatted width
|
JavaFormatterOptions.SortImports |
sortImports() |
public JavaFormatterOptions(JavaFormatterOptions.JavadocFormatter javadocFormatter, JavaFormatterOptions.Style style, JavaFormatterOptions.SortImports sortImports)
public JavaFormatterOptions.JavadocFormatter javadocFormatter()
public int maxLineLength()
public int indentationMultiplier()
public JavaFormatterOptions.SortImports sortImports()
Copyright © 2015–2016 Google Inc.. All rights reserved.