| Modifier and Type | Method and Description |
|---|---|
ClauseScopeAnnotator.ClauseScopeResult |
ClauseScopeAnnotator.annotate(Pp2TokenStream stream,
SqlScopeDetector.SqlScopeResult sqlScope)
Annotate
stream clause membership using the SQL scope levels. |
SqlScopeDetector.SqlScopeResult |
SqlScopeDetector.detect(Pp2TokenStream stream)
Annotate the SQL scope level of every token in
stream. |
BlockScopeDetector.BlockScopeResult |
BlockScopeDetector.detect(Pp2TokenStream stream)
Annotate block depth + kind for every token in
stream. |
List<MultiWordKeywordMerger.Match> |
MultiWordKeywordMerger.findMatches(Pp2TokenStream stream,
EDbVendor vendor)
Find all multi-word keyword spans in
stream for vendor. |
List<IslandScope> |
IslandRecognizer.recognize(Pp2TokenStream stream,
SqlScopeDetector.SqlScopeResult sql,
ClauseScopeAnnotator.ClauseScopeResult clause,
Pp2FormatOptions opts)
Recognise islands over
stream. |
| Modifier and Type | Method and Description |
|---|---|
Pp2TokenStream |
LayoutContext.getStream() |
| Constructor and Description |
|---|
LayoutContext(Pp2TokenStream stream,
Pp2FormatOptions options) |
LayoutContext(Pp2TokenStream stream,
Pp2FormatOptions options,
LayoutConflictResolver resolver) |
| Modifier and Type | Method and Description |
|---|---|
int |
AstOverlayAnnotator.annotate(TCustomSqlStatement stmt,
Pp2TokenStream stream)
Annotate
stream with AST-derived roles from stmt, where
the stream and the AST come from the same parse (offset adjustment 0). |
int |
AstOverlayAnnotator.annotate(TCustomSqlStatement stmt,
Pp2TokenStream stream,
long offsetAdjustment)
Annotate
stream with AST-derived roles from stmt, applying
a fixed offsetAdjustment to every AST node span before matching it
against the stream tokens' absolute offsets. |
| Modifier and Type | Method and Description |
|---|---|
List<StatementRange> |
StatementBoundaryDetector.detect(Pp2TokenStream stream,
EDbVendor vendor)
Detect statement boundaries.
|
| Constructor and Description |
|---|
ParseRecoveryEngine(EDbVendor vendor,
String originalSql,
Pp2TokenStream stream,
Pp2FormatOptions opts) |
| Modifier and Type | Method and Description |
|---|---|
String |
GuardedAstDelegate.render(RegionParseOutcome outcome,
Pp2TokenStream stream,
Pp2FormatOptions opts) |
String |
ConservativeTokenRenderer.render(RegionParseOutcome outcome,
Pp2TokenStream stream,
Pp2FormatOptions opts) |
String |
LexicalIslandRenderer.render(RegionParseOutcome outcome,
Pp2TokenStream stream,
Pp2FormatOptions opts) |
String |
RegionRenderer.render(RegionParseOutcome outcome,
Pp2TokenStream stream,
Pp2FormatOptions opts)
Render the outcome's region to its final text.
|
| Modifier and Type | Method and Description |
|---|---|
static Pp2TokenStream |
Pp2TokenStream.fromSourceTokenList(TSourceTokenList source)
Build a stream by wrapping each
TSourceToken in the input
list as a Pp2Token with zero preceding whitespace. |
Pp2TokenStream |
Pp2TokenStreamBuilder.BuildResult.getStream() |
static Pp2TokenStream |
Pp2TokenStream.ofTokens(List<Pp2Token> tokens)
Build a stream from a previously-prepared list of
Pp2Tokens. |
| Modifier and Type | Method and Description |
|---|---|
void |
ProtectedZoneDetector.annotate(Pp2TokenStream stream)
Annotate the supplied stream in place.
|