Module com.google.googlejavaformat
Package com.google.googlejavaformat
Class OpsBuilder.BlankLineWanted
java.lang.Object
com.google.googlejavaformat.OpsBuilder.BlankLineWanted
- Enclosing class:
OpsBuilder
A request to add or remove a blank line in the output.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OpsBuilder.BlankLineWanted
Never emit a blank line.static final OpsBuilder.BlankLineWanted
Explicitly preserve blank lines from the input (e.g.static final OpsBuilder.BlankLineWanted
Always emit a blank line. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OpsBuilder.BlankLineWanted
conditional
(Output.BreakTag breakTag) Emit a blank line if the given break is taken.abstract OpsBuilder.BlankLineWanted
merge
(OpsBuilder.BlankLineWanted wanted) Merge this blank line request with another.wanted()
Is the blank line wanted?
-
Field Details
-
YES
Always emit a blank line. -
NO
Never emit a blank line. -
PRESERVE
Explicitly preserve blank lines from the input (e.g. before the first member in a class declaration). Overrides conditional blank lines.
-
-
Constructor Details
-
BlankLineWanted
public BlankLineWanted()
-
-
Method Details
-
wanted
Is the blank line wanted? -
merge
Merge this blank line request with another. -
conditional
Emit a blank line if the given break is taken.
-