public final class QueryBlockScope extends Object
statementIndex (its position in the flat
SemanticProgram.getStatements() list), the
parentStatementIndex of its lexical owner (null for
the main block; CTE reference sites are not parent edges),
the ScopeKind, an optional name (e.g. a CTE name), and an
optional span.
Immutable. Introduced by join-analysis slice 162 (S1); populated in slice 170 (S9).
| Constructor and Description |
|---|
QueryBlockScope(int statementIndex,
Integer parentStatementIndex,
ScopeKind scopeKind,
String name,
SourceSpan sourceSpan) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getName()
Optional; e.g.
|
Integer |
getParentStatementIndex()
Null for the main (top-level) block.
|
ScopeKind |
getScopeKind() |
SourceSpan |
getSourceSpan()
Optional; null when the parser cannot anchor the block.
|
int |
getStatementIndex() |
int |
hashCode() |
String |
toString() |
public QueryBlockScope(int statementIndex, Integer parentStatementIndex, ScopeKind scopeKind, String name, SourceSpan sourceSpan)
public int getStatementIndex()
public Integer getParentStatementIndex()
public ScopeKind getScopeKind()
public SourceSpan getSourceSpan()