public final class Statement extends SqllrObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Statement.Builder
Collects the members of a new
Statement. |
SqllrObject.Reader<T>| Modifier and Type | Field and Description |
|---|---|
static List<String> |
MEMBERS
The members the schema defines, in schema order.
|
static SqllrObject.Reader<Statement> |
READER
Reads a JSON object as a
Statement. |
static List<String> |
REQUIRED
The members the schema requires.
|
| Modifier and Type | Method and Description |
|---|---|
static Statement.Builder |
builder() |
static Statement |
fromJson(Object json)
A
Statement with the members of a JSON object, all kept. |
String |
getAnalysisCompleteness()
The member
analysisCompleteness. |
List<Long> |
getDiagnosticRefs()
The member
diagnosticRefs. |
Position |
getEnd()
The member
end. |
Map<String,Extension> |
getExtensions()
The member
extensions. |
List<FeatureCompleteness> |
getFeatureCompleteness()
The member
featureCompleteness. |
String |
getOperation()
The member
operation. |
Long |
getOrdinal()
The member
ordinal. |
Long |
getRef()
The member
ref. |
Long |
getSourceUnitRef()
The member
sourceUnitRef. |
Position |
getStart()
The member
start. |
Statement.Builder |
toBuilder()
A builder holding every member of this object.
|
public static final SqllrObject.Reader<Statement> READER
Statement.public static Statement fromJson(Object json)
Statement with the members of a JSON object, all kept.public static Statement.Builder builder()
public Statement.Builder toBuilder()
public Long getRef()
ref. A document-local reference: an integer that is unique across the
whole document (one reference space for every object that carries a ref). Local references
are assigned after merging and have no meaning outside the document (Sections 6.1 and 13).
Null when absent; throws IllegalStateException when the member holds another JSON type.public Long getSourceUnitRef()
sourceUnitRef. A document-local reference: an integer that is unique
across the whole document (one reference space for every object that carries a ref). Local
references are assigned after merging and have no meaning outside the document (Sections 6.1
and 13). Null when absent; throws IllegalStateException when the member holds another JSON
type.public Long getOrdinal()
ordinal. 0-based position of the statement within its source unit; with
the unit identity it is the statement identity. A 0-based ordinal. Null when absent; throws
IllegalStateException when the member holds another JSON type.public Position getStart()
start. Null when absent; throws IllegalStateException when the member
holds another JSON type.public Position getEnd()
end. Null when absent; throws IllegalStateException when the member holds
another JSON type.public String getOperation()
operation. The kind of a statement. Registry group 'statementOperations'
(Section 12.1). Null when absent; throws IllegalStateException when the member holds another
JSON type.public String getAnalysisCompleteness()
analysisCompleteness. Analysis completeness of a scope. Registry group
'analysisCompleteness' (Section 4.4). Null when absent; throws IllegalStateException when the
member holds another JSON type.public List<FeatureCompleteness> getFeatureCompleteness()
featureCompleteness. Feature-scope completeness; one entry per feature.
Null when absent; throws IllegalStateException when the member holds another JSON type.public List<Long> getDiagnosticRefs()
diagnosticRefs. A set of local references. Null when absent; throws
IllegalStateException when the member holds another JSON type.public Map<String,Extension> getExtensions()
extensions. Extension data keyed by namespace. Every core object may carry
it; it never takes part in a core identity. Null when absent; throws IllegalStateException
when the member holds another JSON type.