public class JavaFormatterOptions extends java.lang.Object implements JavadocOptions
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.
Modifier and Type | Class and Description |
---|---|
static class |
JavaFormatterOptions.Builder
A builder for
JavaFormatterOptions . |
static class |
JavaFormatterOptions.Style |
Modifier and Type | Method and Description |
---|---|
static JavaFormatterOptions.Builder |
builder()
Returns a builder for
JavaFormatterOptions . |
static JavaFormatterOptions |
defaultOptions()
Returns the default formatting options.
|
int |
indentationMultiplier()
Returns the multiplier for the unit of indent
|
int |
maxLineLength()
Returns the maximum formatted width
|
public int maxLineLength()
maxLineLength
in interface JavadocOptions
public int indentationMultiplier()
public static JavaFormatterOptions defaultOptions()
public static JavaFormatterOptions.Builder builder()
JavaFormatterOptions
.Copyright © 2015-2018 Google Inc.. All Rights Reserved.