public final class LayoutPriorities extends Object
LayoutRules. Higher values win conflicts (see
LayoutConflictResolver). Rules in later layout stages generally have
higher priority so they can override earlier, coarser decisions — e.g. the
indent rule (S28) overrides the spacing rule's blanksBefore for a
token that begins a new line.
Plan reference: §7.3/S24-S29.
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNMENT
S28 — column / assignment alignment.
|
static int |
CASE_ANDOR
S27 — CASE, AND/OR, and concatenation breaks.
|
static int |
CASE_MODIFICATION
S29 — keyword/identifier case modification (text only; orthogonal to whitespace).
|
static int |
CLAUSE_LINEBREAK
S25 — clause/master linebreaks and set-operator breaks.
|
static int |
INDENT
S28 — indentation (overrides spacing's leading-blank decisions).
|
static int |
JOIN_PAREN_COMMA
S26 — JOIN/ON, parens, and comma layout.
|
static int |
SPACING
S24 — inter-token spacing (lowest; everything else may override it).
|
public static final int SPACING
public static final int CLAUSE_LINEBREAK
public static final int JOIN_PAREN_COMMA
public static final int CASE_ANDOR
public static final int INDENT
public static final int ALIGNMENT
public static final int CASE_MODIFICATION