public final class IndentRules extends Object implements LayoutRule
GFmtOpt.indentLen (default 2) and the level is:
So master and clause keywords (SELECT/FROM/WHERE/
JOIN/...) sit at the scope's base column, and the items they govern
sit one level in. Only tokens that begin a line (effective
linebreaksBefore > 0) are indented; mid-line tokens are untouched.
Priority LayoutPriorities.INDENT (overrides the spacing rule's
leading blank). Needs the S20 sql scope. Iterative; read-only over tokens.
Plan reference: §7.3/S28, §7.4/S28.
| Constructor and Description |
|---|
IndentRules() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(LayoutContext context)
Apply the rule, requesting layout decisions on the context.
|
String |
name()
Short, stable identifier for logging/diagnostics.
|
int |
priority()
The rule's precedence.
|
public IndentRules()
public int priority()
LayoutRulepriority in interface LayoutRulepublic String name()
LayoutRulename in interface LayoutRulepublic void apply(LayoutContext context)
LayoutRuleapply in interface LayoutRule