public static interface BreakBehaviour.Cases<R>
| Modifier and Type | Method and Description |
|---|---|
R |
breakOnlyIfInnerLevelsThenFitOnOneLine(boolean keepIndentWhenInlined)
Break if by doing so all inner levels then fit on a single line.
|
R |
breakThisLevel() |
R |
inlineSuffix()
|
R |
preferBreakingLastInnerLevel(boolean keepIndentWhenInlined)
If the last level is breakable, prefer breaking it if it will keep the rest of this level on line line.
|
R breakThisLevel()
R preferBreakingLastInnerLevel(boolean keepIndentWhenInlined)
keepIndentWhenInlined - whether to keep this level's indent when inlined as a recursive level (when
reached via a previous `preferBreakingLastInnerLevel` whose breakability was
LastLevelBreakability.CHECK_INNER)R inlineSuffix()
Level and the last doc), recursing into
the Level just before the last Level (if there is such a level) to see if that can be broken
instead.
This behaves like breakThisLevel() if we couldn't recurse into such an inner level, or if the
suffix level doesn't fit on the last line.
R breakOnlyIfInnerLevelsThenFitOnOneLine(boolean keepIndentWhenInlined)