Module com.google.googlejavaformat
Package com.google.googlejavaformat
Class OpsBuilder.BlankLineWanted
java.lang.Object
com.google.googlejavaformat.OpsBuilder.BlankLineWanted
- Enclosing class:
- OpsBuilder
public abstract static class OpsBuilder.BlankLineWanted extends Object
A request to add or remove a blank line in the output.
-
Field Summary
Fields Modifier and Type Field Description static OpsBuilder.BlankLineWantedNONever emit a blank line.static OpsBuilder.BlankLineWantedPRESERVEExplicitly preserve blank lines from the input (e.g.static OpsBuilder.BlankLineWantedYESAlways emit a blank line. -
Constructor Summary
Constructors Constructor Description BlankLineWanted() -
Method Summary
Modifier and Type Method Description static OpsBuilder.BlankLineWantedconditional(Output.BreakTag breakTag)Emit a blank line if the given break is taken.abstract OpsBuilder.BlankLineWantedmerge(OpsBuilder.BlankLineWanted wanted)Merge this blank line request with another.abstract Optional<Boolean>wanted()Is the blank line wanted?
-
Field Details
-
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.
-