public static final class SqlScopeDetector.SqlScopeResult extends Object
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxLevel()
Maximum scope level observed (0 if no subqueries).
|
List<SqlScopeDetector.SqlScope> |
getScopes()
All detected subquery / CTE-body scopes, each carrying the opening
paren index, the closing paren index (
-1 if unclosed), and
the enclosing level at which the subquery sits. |
int |
levelAt(int index)
SQL scope level of the token at
index (0 = top-level query). |
int |
size()
Number of tokens covered.
|
public int size()
public int levelAt(int index)
index (0 = top-level query).public int getMaxLevel()
public List<SqlScopeDetector.SqlScope> getScopes()
-1 if unclosed), and
the enclosing level at which the subquery sits.