public final class IslandScope extends Object
Islands may nest and overlap (e.g. a CASE island inside a
SELECT island, or an ERROR_REGION over the dangling tokens of
an incomplete clause island). Consumers should treat them as hints, not a
strict partition.
Token indices are inclusive and refer to positions in the
Pp2TokenStream the recogniser ran over.
Plan reference: §7.3/S22, §7.4/S22.
| Constructor and Description |
|---|
IslandScope(IslandKind kind,
int startIndex,
int endIndex,
int sqlLevel,
boolean complete,
IncompleteReason reason) |
| Modifier and Type | Method and Description |
|---|---|
int |
getEndIndex() |
IslandKind |
getKind() |
int |
getLength() |
IncompleteReason |
getReason() |
int |
getSqlLevel() |
int |
getStartIndex() |
boolean |
isComplete() |
String |
toString() |
public IslandScope(IslandKind kind, int startIndex, int endIndex, int sqlLevel, boolean complete, IncompleteReason reason)
public IslandKind getKind()
public int getStartIndex()
public int getEndIndex()
public int getLength()
public int getSqlLevel()
public boolean isComplete()
public IncompleteReason getReason()