public enum LastLevelBreakability extends java.lang.Enum<LastLevelBreakability>
BreakBehaviour.Cases.preferBreakingLastInnerLevel(boolean).| Enum Constant and Description |
|---|
ABORT
Default behaviour.
|
ACCEPT_INLINE_CHAIN
Unconditionally allow ending an inline chain at this level, after which this level may be broken as usual, or a
prefix thereof could be inlined further (if it has the appropriate break behaviour of
BreakBehaviour.Cases.preferBreakingLastInnerLevel(boolean)). |
ACCEPT_INLINE_CHAIN_IF_SIMPLE_OTHERWISE_CHECK_INNER
Behaves like
ACCEPT_INLINE_CHAIN if the current inlined levels are all simple (according to
OpenOp.complexity()), otherwise behave like CHECK_INNER. |
CHECK_INNER
Delegate to the
LastLevelBreakability of _this_ level's last inner level. |
| Modifier and Type | Method and Description |
|---|---|
static LastLevelBreakability |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LastLevelBreakability[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LastLevelBreakability ABORT
BreakBehaviour.Cases.preferBreakingLastInnerLevel(boolean) chain, if we've
arrived at a level with this breakability, then we should abort the chain.public static final LastLevelBreakability ACCEPT_INLINE_CHAIN
BreakBehaviour.Cases.preferBreakingLastInnerLevel(boolean)). This should only be used when you know that the first
non-Level Doc inside this level, if you flatten it, is a Break.public static final LastLevelBreakability CHECK_INNER
LastLevelBreakability of _this_ level's last inner level. Typically, this will be true if
this level is not immediately followed by a break (see StartsWithBreakVisitor). Behaves the same as
ABORT if this level is not BreakBehaviour.Cases.preferBreakingLastInnerLevel(boolean).public static final LastLevelBreakability ACCEPT_INLINE_CHAIN_IF_SIMPLE_OTHERWISE_CHECK_INNER
ACCEPT_INLINE_CHAIN if the current inlined levels are all simple (according to
OpenOp.complexity()), otherwise behave like CHECK_INNER.public static LastLevelBreakability[] values()
for (LastLevelBreakability c : LastLevelBreakability.values()) System.out.println(c);
public static LastLevelBreakability valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null