public final class Pp2Formatter extends Object
This class is the integration target for every slice's tests. It is
deliberately not exposed to callers — the public entry point is
FormatterFactory.pp2(...), added in slice S17 once the MVP is
shippable (plan §4.2, §7.3/S17).
Since slice S16, format(...) delegates to Pp2Engine.
Before S16 it was an identity pass (Phase-0 contract, slice S4).
Lifecycle: Pp2Formatter carries no caller-visible state. Each
format(...) call is independent. Callers may share an instance
across threads (subject to their own Pp2FormatOptions discipline).
| Constructor and Description |
|---|
Pp2Formatter() |
| Modifier and Type | Method and Description |
|---|---|
Pp2FormatResult |
format(String sql)
Format the given SQL using the default vendor (
EDbVendor.dbvoracle)
and default options (Pp2FormatOptions.defaults()). |
Pp2FormatResult |
format(String sql,
EDbVendor vendor,
Pp2FormatOptions opts)
Format the given SQL using the supplied vendor and options.
|
Pp2FormatResult |
format(String sql,
Pp2FormatOptions opts)
Format the given SQL using the default vendor (
EDbVendor.dbvoracle)
and the supplied options. |
public Pp2Formatter()
public Pp2FormatResult format(String sql)
EDbVendor.dbvoracle)
and default options (Pp2FormatOptions.defaults()).NullPointerException - if sql is nullpublic Pp2FormatResult format(String sql, Pp2FormatOptions opts)
EDbVendor.dbvoracle)
and the supplied options.NullPointerException - if sql or opts is nullpublic Pp2FormatResult format(String sql, EDbVendor vendor, Pp2FormatOptions opts)
Pp2Engine.format(String, EDbVendor, Pp2FormatOptions).NullPointerException - if any argument is null