public final class ContractStatement extends Object
Statement entry (lineage2-contract.md §2.1).
statementIndex is 1-based, ordered by source position within the
unit. kind is the contract statement-kind string (e.g.
"SELECT", "SELECT_INTO", "UNKNOWN" for
statements the parser could not type).
Internal API: not part of the public gsqlparser surface.
| Constructor and Description |
|---|
ContractStatement(int statementIndex,
String kind,
String queryFingerprint,
SourceLocation sourceLocation,
List<ContractDiagnostic> diagnostics) |
| Modifier and Type | Method and Description |
|---|---|
List<ContractDiagnostic> |
getDiagnostics()
Never null; possibly empty (the JSON key is omitted when empty).
|
String |
getKind() |
String |
getQueryFingerprint() |
SourceLocation |
getSourceLocation()
Nullable.
|
int |
getStatementIndex() |
public ContractStatement(int statementIndex, String kind, String queryFingerprint, SourceLocation sourceLocation, List<ContractDiagnostic> diagnostics)
public int getStatementIndex()
public String getQueryFingerprint()
public SourceLocation getSourceLocation()
public List<ContractDiagnostic> getDiagnostics()