| Package | Description |
|---|---|
| gudusoft.gsqlparser.ir.semantic | |
| gudusoft.gsqlparser.ir.semantic.joinanalysis |
| Modifier and Type | Method and Description |
|---|---|
SourceSpan |
StatementGraph.getSourceSpan()
Optional block-level source span (slice 179, R5) covering this
statement's own text, or
null when not set. |
SourceSpan |
ColumnRef.getSourceSpan()
Optional source-text span of this column reference (join-analysis
slice 164).
|
SourceSpan |
RelationSource.getSourceSpan()
Optional source-text span of this relation reference (join-analysis
slice 164).
|
SourceSpan |
Diagnostic.getSpan() |
static SourceSpan |
SourceSpan.of(TParseTreeNode node)
Derive a span from the AST node's start and end tokens.
|
static SourceSpan |
SourceSpan.of(TSourceToken start,
TSourceToken end)
Derive a span from explicit start / end tokens.
|
| Modifier and Type | Method and Description |
|---|---|
static Diagnostic |
Diagnostic.errorWithSpan(DiagnosticCode code,
String message,
SourceSpan span)
Construct an
ERROR-severity diagnostic
with an explicit (already-computed) source span. |
StatementGraph |
StatementGraph.withSourceSpan(SourceSpan newSourceSpan)
Return a copy of this statement with its block-level
StatementGraph.sourceSpan replaced (slice 179, R5). |
| Constructor and Description |
|---|
ColumnRef(String relationAlias,
String columnName,
StructuredColumnPath structuredPath,
SourceSpan sourceSpan)
Slice 164 — adds the optional source span.
|
ColumnRef(String relationAlias,
String columnName,
StructuredColumnPath structuredPath,
SourceSpan sourceSpan,
ColumnResolution resolution)
Full constructor (join-analysis slice 165).
|
RelationSource(String alias,
RelationBinding binding,
SourceSpan sourceSpan) |
RelationSource(String alias,
RelationBinding binding,
SourceSpan sourceSpan,
int instanceId)
Full constructor (join-analysis slice 179).
|
StatementGraph(String name,
String kind,
List<RelationSource> relations,
List<OutputColumn> outputColumns,
List<OutputColumn> returningColumns,
List<ColumnRef> filterColumnRefs,
List<ColumnRef> joinColumnRefs,
List<ColumnRef> groupByColumnRefs,
List<ColumnRef> havingColumnRefs,
List<ColumnRef> orderByColumnRefs,
List<ColumnRef> distinctOnColumnRefs,
List<ColumnRef> qualifyColumnRefs,
List<GroupingElement> groupingElements,
List<ColumnRef> pivotColumnRefs,
boolean distinct,
SetOperator setOperator,
RowLimit rowLimit,
TargetRelation target,
JoinAnalysisFacts joinAnalysisFacts,
SourceSpan sourceSpan)
Slice 179 (R5) primary constructor — adds the optional block-level
SourceSpan covering this statement's own source text. |
| Modifier and Type | Method and Description |
|---|---|
SourceSpan |
JoinEntity.getSourceSpan()
Optional; null when the parser cannot anchor the join clause.
|
SourceSpan |
Predicate.getSourceSpan()
Optional; null when the parser cannot anchor this predicate.
|
SourceSpan |
PredicateOperand.getSourceSpan()
Optional; null when the parser cannot anchor this operand.
|
SourceSpan |
QueryBlockScope.getSourceSpan()
Optional; null when the parser cannot anchor the block.
|
| Modifier and Type | Method and Description |
|---|---|
static PredicateOperand |
PredicateOperand.call(String text,
SourceSpan span) |
static PredicateOperand |
PredicateOperand.column(ColumnRef column,
SourceSpan span) |
static PredicateOperand |
PredicateOperand.complex(String text,
SourceSpan span) |
static PredicateOperand |
PredicateOperand.literal(String text,
SourceSpan span) |
| Constructor and Description |
|---|
JoinEntity(SemanticJoinType joinType,
JoinEndpoint leftEndpoint,
JoinEndpoint rightEndpoint,
int order,
JoinSourceSyntax sourceSyntax,
boolean naturalFlag,
List<String> usingColumns,
List<Predicate> conditions,
SourceSpan sourceSpan,
String conditionText)
Original 10-arg constructor (non-lateral).
|
JoinEntity(SemanticJoinType joinType,
JoinEndpoint leftEndpoint,
JoinEndpoint rightEndpoint,
int order,
JoinSourceSyntax sourceSyntax,
boolean naturalFlag,
List<String> usingColumns,
List<Predicate> conditions,
SourceSpan sourceSpan,
String conditionText,
boolean lateralFlag)
Full constructor.
|
Predicate(PredicateKind kind,
String operator,
PredicateOperand leftOperand,
PredicateOperand rightOperand,
SourceSpan sourceSpan) |
QueryBlockScope(int statementIndex,
Integer parentStatementIndex,
ScopeKind scopeKind,
String name,
SourceSpan sourceSpan) |