public class SelectScope extends AbstractScope
node, parent, scopeType| Constructor and Description |
|---|
SelectScope(IScope parent,
TParseTreeNode node) |
| Modifier and Type | Method and Description |
|---|---|
FromScope |
getFromScope() |
INamespace |
getSelectListNamespace() |
List<INamespace> |
getVisibleNamespaces()
Default implementation: delegate to parent
|
IScope |
getWhereScope() |
void |
resolve(List<String> names,
INameMatcher matcher,
boolean deep,
IResolved resolved)
Resolve a name within this SELECT scope.
|
INamespace |
resolveTable(String tableName)
Default implementation: delegate to parent
|
void |
setFromScope(FromScope fromScope) |
void |
setSelectListNamespace(INamespace namespace) |
void |
setWhereScope(IScope whereScope) |
String |
toString() |
addChild, fullyQualify, getChildren, getNode, getParent, getScopeType, isWithinpublic SelectScope(IScope parent, TParseTreeNode node)
public void setFromScope(FromScope fromScope)
public FromScope getFromScope()
public void setWhereScope(IScope whereScope)
public IScope getWhereScope()
public void setSelectListNamespace(INamespace namespace)
public INamespace getSelectListNamespace()
public INamespace resolveTable(String tableName)
AbstractScoperesolveTable in interface IScoperesolveTable in class AbstractScopetableName - Table name or aliaspublic List<INamespace> getVisibleNamespaces()
AbstractScopegetVisibleNamespaces in interface IScopegetVisibleNamespaces in class AbstractScopepublic void resolve(List<String> names, INameMatcher matcher, boolean deep, IResolved resolved)
resolve in interface IScoperesolve in class AbstractScopenames - Name parts (e.g., ["schema", "table", "column"])matcher - Name matcher for case sensitivity rulesdeep - Whether to recursively resolve into record fieldsresolved - Callback to collect all matchespublic String toString()
toString in class AbstractScope