public final class Scope extends SqllrObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Scope.Builder
Collects the members of a new
Scope. |
SqllrObject.Reader<T>| Modifier and Type | Field and Description |
|---|---|
static List<String> |
MEMBERS
The members the schema defines, in schema order.
|
static SqllrObject.Reader<Scope> |
READER
Reads a JSON object as a
Scope. |
static List<String> |
REQUIRED
The members the schema requires.
|
| Modifier and Type | Method and Description |
|---|---|
static Scope.Builder |
builder() |
static Scope |
fromJson(Object json)
A
Scope with the members of a JSON object, all kept. |
Map<String,Extension> |
getExtensions()
The member
extensions. |
String |
getKind()
The member
kind. |
Long |
getParentRef()
The member
parentRef. |
String |
getPath()
The member
path. |
Long |
getRef()
The member
ref. |
Long |
getSourceUnitRef()
The member
sourceUnitRef. |
Long |
getStatementRef()
The member
statementRef. |
Scope.Builder |
toBuilder()
A builder holding every member of this object.
|
public static final SqllrObject.Reader<Scope> READER
Scope.public static Scope fromJson(Object json)
Scope with the members of a JSON object, all kept.public static Scope.Builder builder()
public Scope.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 String getKind()
kind. The kind of a scope. Registry group 'scopeKinds' (Sections 4.2 and
9.1). Null when absent; throws IllegalStateException when the member holds another JSON type.public Long getParentRef()
parentRef. The enclosing scope. 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 getStatementRef()
statementRef. 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 String getPath()
path. The semantic path of the query block within its statement. A
semantic path. Under the path profile sqllr-path-1 it is a '/'-joined list of steps
CODE[index] (registry group pathStepCodes) that follows algorithms/path-v1.md (semantic
stage: SEMANTIC_PATH_PROFILE_VIOLATION); under another declared profile it is opaque and
comparable only within (producer, path profile). 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.