| Class | Description |
|---|---|
| BlockScopeDetector |
Computes, for every token in a
Pp2TokenStream, the lexical block
nesting depth and the kind of block it sits directly inside
(parenthesised group or {@code BEGIN ... |
| BlockScopeDetector.BlockScope |
An immutable detected block span.
|
| BlockScopeDetector.BlockScopeResult |
Per-token block depth + kind, plus the list of detected scopes.
|
| ClauseScopeAnnotator |
Annotates each token with the clause it belongs to (
ClausePart) and
marks master/clause keyword roles, by walking the token stream left-to-right
and tracking the current clause per SQL scope level. |
| ClauseScopeAnnotator.ClauseScopeResult |
Per-token clause membership plus the master-keyword token indices.
|
| IslandRecognizer |
Recognises typed
IslandScopes over a Pp2TokenStream, using the
SQL scope (S20), clause membership (S21), and block scope (S19) results. |
| IslandScope |
An immutable recognised island: a typed, contiguous token span with its SQL
scope level and completeness state.
|
| MultiWordKeywordMerger |
Identifies runs of consecutive tokens that form a multi-word SQL keyword
(e.g.
|
| MultiWordKeywordMerger.Match |
An immutable multi-word keyword span over a
Pp2TokenStream:
the inclusive token-index range and the canonical upper-cased phrase. |
| MultiWordKeywordTable |
Per-vendor table of multi-word SQL keyword phrases that the lexical island
pipeline treats as a single keyword unit (e.g.
|
| MultiWordKeywordTable.Phrase |
An immutable multi-word keyword phrase: its lower-cased words (for
matching) and an upper-cased canonical rendering (for reporting/merging).
|
| SqlScopeDetector |
Computes, for every token in a
Pp2TokenStream, its SQL query-scope
level: how many enclosing subqueries / CTE bodies contain it. |
| SqlScopeDetector.SqlScope |
An immutable subquery/CTE scope (a query paren and its contents).
|
| SqlScopeDetector.SqlScopeResult |
Per-token SQL scope level plus the list of detected subquery/CTE scopes.
|
| Enum | Description |
|---|---|
| BlockKind |
The kind of lexical block a token sits directly inside, as detected by
BlockScopeDetector. |
| ClausePart |
The clause a token belongs to within its SQL query block, as computed by
ClauseScopeAnnotator. |
| IncompleteReason |
Why an
IslandScope is incomplete. |
| IslandKind |
The kind of lexical island recognised by
IslandRecognizer. |