public final class ContractDiagnostic extends Object
Diagnostic (lineage2-contract.md §8). Codes come from
the Semantic IR DiagnosticCode contract plus the
LINEAGE2_* namespace for engine-level codes; codes are
append-only and consumers never string-match messages.
Internal API: not part of the public gsqlparser surface.
| Constructor and Description |
|---|
ContractDiagnostic(String code,
DiagnosticSeverity severity,
String message,
Integer statementIndex,
SourceLocation sourceLocation) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCode() |
String |
getMessage() |
DiagnosticSeverity |
getSeverity() |
SourceLocation |
getSourceLocation()
Nullable.
|
Integer |
getStatementIndex()
Nullable — unit-level diagnostics carry no statement index.
|
public ContractDiagnostic(String code, DiagnosticSeverity severity, String message, Integer statementIndex, SourceLocation sourceLocation)
public DiagnosticSeverity getSeverity()
public String getMessage()
public Integer getStatementIndex()
public SourceLocation getSourceLocation()