public class EmptyScope extends Object implements IScope
| Modifier and Type | Field and Description |
|---|---|
static EmptyScope |
INSTANCE
Singleton instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(INamespace namespace,
String alias,
boolean nullable)
Add a child namespace to this scope.
|
QualifiedName |
fullyQualify(String name)
Fully qualify a name based on this scope.
|
List<ScopeChild> |
getChildren()
Get all child namespaces in this scope.
|
TParseTreeNode |
getNode()
Get the associated AST node
|
IScope |
getParent()
Get the parent scope.
|
ScopeType |
getScopeType()
Get the scope type
|
List<INamespace> |
getVisibleNamespaces()
Get all namespaces visible in this scope.
|
boolean |
isWithin(IScope ancestorScope)
Check if this scope is within (nested inside) another scope.
|
void |
resolve(List<String> names,
INameMatcher matcher,
boolean deep,
IResolved resolved)
Resolve a qualified or unqualified name.
|
INamespace |
resolveTable(String tableName)
Resolve a table name or alias to its namespace.
|
String |
toString() |
public static final EmptyScope INSTANCE
public IScope getParent()
IScopepublic TParseTreeNode getNode()
IScopepublic ScopeType getScopeType()
IScopegetScopeType in interface IScopepublic void resolve(List<String> names, INameMatcher matcher, boolean deep, IResolved resolved)
IScopepublic INamespace resolveTable(String tableName)
IScoperesolveTable in interface IScopetableName - Table name or aliaspublic void addChild(INamespace namespace, String alias, boolean nullable)
IScopepublic List<ScopeChild> getChildren()
IScopegetChildren in interface IScopepublic List<INamespace> getVisibleNamespaces()
IScopegetVisibleNamespaces in interface IScopepublic QualifiedName fullyQualify(String name)
IScopefullyQualify in interface IScopename - Name to qualifypublic boolean isWithin(IScope ancestorScope)
IScope