| Package | Description |
|---|---|
| gudusoft.gsqlparser.pp2.layout | |
| gudusoft.gsqlparser.pp2.layout.rules |
| Modifier and Type | Method and Description |
|---|---|
List<LayoutRule> |
LayoutRulePipeline.getRules()
Read-only view of the registered rules, in registration order.
|
| Modifier and Type | Method and Description |
|---|---|
LayoutRulePipeline |
LayoutRulePipeline.register(LayoutRule rule)
Register a rule.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AlignmentRules
When
GFmtOpt.alignAliasInSelectList is set (and the list is stacked,
TAlignStyle.AsStacked), aligns each stacked SELECT-list continuation
column under the first column (i.e. |
class |
AndOrConcatRules
Breaks a predicate before each top-level
AND / OR so a long
WHERE/HAVING/ON condition lays out one conjunct per line: |
class |
CaseModificationRules
Applies keyword / identifier / function-name case modification, reusing the
existing
GFmtOpt.caseKeywords, GFmtOpt.caseIdentifier, and
GFmtOpt.caseFuncname options. |
class |
CaseRules
Lays out
CASE expressions vertically: a linebreak before each
WHEN, ELSE, and the closing END, keeping THEN
on its WHEN line. |
class |
ClauseLinebreakRules
Requests a linebreak before each major clause keyword so a query lays out one
clause per line:
FROM, WHERE, GROUP BY, HAVING,
ORDER BY. |
class |
IndentRules
Indents every line-starting token.
|
class |
JoinRules
Lays out joins vertically: a linebreak before the start of each join phrase
(
JOIN, LEFT OUTER JOIN, INNER JOIN, CROSS APPLY,
...) and before each ON / USING that opens a join condition. |
class |
ParenAndCommaRules
Stacks comma-separated list items (SELECT list, GROUP BY, ORDER BY) one per
line, placing the linebreak relative to the comma per
GFmtOpt.selectColumnlistComma. |
class |
SetOperatorRules
Lays out set operators vertically: a linebreak before the operator keyword
(
UNION/INTERSECT/EXCEPT/MINUS) and before the
SELECT that follows the operator. |
class |
SpacingRules
The base spacing rule: requests the number of blank columns before each token
so adjacent tokens are separated by a single space, with the usual tight
exceptions around parentheses, commas, periods, and semicolons.
|