public enum FormatStatus extends Enum<FormatStatus>
Pp2FormatResult.getStatus().
OK — every region rendered via the guarded AST path
(no recovery, no fallback). All diagnostics, if any, are at
FormatDiagnostic.Severity.INFO level.OK_WITH_RECOVERY — output is complete and every solid
input token is present, but at least one region took the
conservative or lexical-island fallback. Diagnostics carry the
per-region parser errors.FAILED — pp2 could not produce a usable output for at
least one region. This status is reserved for genuinely
unrecoverable conditions (e.g., an internal invariant violation);
it should never appear for ordinary malformed SQL.| Enum Constant and Description |
|---|
FAILED |
OK |
OK_WITH_RECOVERY |
| Modifier and Type | Method and Description |
|---|---|
static FormatStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FormatStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FormatStatus OK
public static final FormatStatus OK_WITH_RECOVERY
public static final FormatStatus FAILED
public static FormatStatus[] values()
for (FormatStatus c : FormatStatus.values()) System.out.println(c);
public static FormatStatus valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null