Package com.palantir.javaformat.java
Class JavaFormatterOptions
java.lang.Object
com.palantir.javaformat.java.JavaFormatterOptions
Options for a google-java-format invocation.
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder forJavaFormatterOptions.static enum -
Method Summary
Modifier and TypeMethodDescriptionstatic JavaFormatterOptions.Builderbuilder()Returns a builder forJavaFormatterOptions.static JavaFormatterOptionsReturns the default formatting options.intReturns the multiplier for the unit of indent.intstyle()Returns the code style.
-
Method Details
-
indentationMultiplier
public int indentationMultiplier()Returns the multiplier for the unit of indent. -
maxLineLength
public int maxLineLength() -
style
Returns the code style. -
defaultOptions
Returns the default formatting options. -
builder
Returns a builder forJavaFormatterOptions.
-