| Package | Description |
|---|---|
| gudusoft.gsqlparser.pp.stmtformatter | |
| gudusoft.gsqlparser.pp2 |
Fault-tolerant SQL formatter (pp2) — augments, does not replace,
the parse-dependent
gudusoft.gsqlparser.pp formatter. |
| gudusoft.gsqlparser.pp2.engine | |
| gudusoft.gsqlparser.pp2.island | |
| gudusoft.gsqlparser.pp2.layout | |
| gudusoft.gsqlparser.pp2.region | |
| gudusoft.gsqlparser.pp2.render | |
| gudusoft.gsqlparser.pp2.token |
| Modifier and Type | Method and Description |
|---|---|
static Pp2FormatResult |
FormatterFactory.pp2(TGSqlParser parser,
Pp2FormatOptions opts)
Fault-tolerant formatter entry point (pp2).
|
| Modifier and Type | Method and Description |
|---|---|
static Pp2FormatOptions |
Pp2FormatOptions.defaults()
Construct with a fresh
GFmtOpt carrying default values. |
static Pp2FormatOptions |
Pp2FormatOptions.from(GFmtOpt gfmtOpt)
Construct from an existing
GFmtOpt by copying its public
instance fields into a freshly-allocated GFmtOpt. |
| Modifier and Type | Method and Description |
|---|---|
Pp2FormatResult |
Pp2Formatter.format(String sql,
EDbVendor vendor,
Pp2FormatOptions opts)
Format the given SQL using the supplied vendor and options.
|
Pp2FormatResult |
Pp2Formatter.format(String sql,
Pp2FormatOptions opts)
Format the given SQL using the default vendor (
EDbVendor.dbvoracle)
and the supplied options. |
| Modifier and Type | Method and Description |
|---|---|
Pp2FormatResult |
Pp2Engine.format(String sql,
EDbVendor vendor,
Pp2FormatOptions opts)
Format the given SQL string using the supplied database vendor and
options.
|
| Modifier and Type | Method and Description |
|---|---|
List<IslandScope> |
IslandRecognizer.recognize(Pp2TokenStream stream,
SqlScopeDetector.SqlScopeResult sql,
ClauseScopeAnnotator.ClauseScopeResult clause,
Pp2FormatOptions opts)
Recognise islands over
stream. |
| Modifier and Type | Method and Description |
|---|---|
Pp2FormatOptions |
LayoutContext.getOptions() |
| Constructor and Description |
|---|
LayoutContext(Pp2TokenStream stream,
Pp2FormatOptions options) |
LayoutContext(Pp2TokenStream stream,
Pp2FormatOptions options,
LayoutConflictResolver resolver) |
| Constructor and Description |
|---|
ParseRecoveryEngine(EDbVendor vendor,
String originalSql,
Pp2TokenStream stream,
Pp2FormatOptions opts) |
| Modifier and Type | Method and Description |
|---|---|
String |
RegionAssembler.assemble(List<RenderedRegion> regions,
SourceSpanLedger ledger,
Pp2FormatOptions opts)
Assemble rendered regions into a final output string.
|
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.
|
protected String |
GuardedAstDelegate.renderWith(TGSqlParser parser,
String inputSlice,
Pp2FormatOptions opts)
Render via the supplied parser.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
TokenEquivalence.equalsModuloFormatting(String left,
String right,
Pp2FormatOptions opts)
Case-insensitive comparison using the default Oracle dialect.
|
static boolean |
TokenEquivalence.equalsModuloFormatting(String left,
String right,
Pp2FormatOptions opts,
EDbVendor vendor,
boolean caseInsensitive)
Full-control comparison.
|