Package com._1c.g5.v8.dt.ql.scoping
Interface IQlCachedScopeProvider
-
- All Known Implementing Classes:
QlCachedScopeProvider
public interface IQlCachedScopeProvider
Special provider for caching values ofIScope
getting fromQlScopeProvider
.
This class provides only values ofIScope
depending from ql query text
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addDbViewScope(IDtProject project, org.eclipse.xtext.scoping.IScope dbViewScope)
void
clearDbViewScopes(IDtProject project)
ClearDbViewElement
scope for projectvoid
clearScopes(String querySchemaText)
Deletes all cached values ofIScope
by text ofQuerySchema
org.eclipse.xtext.scoping.IScope
getDbViewScope(IDtProject project)
org.eclipse.xtext.scoping.IScope
getScope(String querySchemaText, String operatorText)
void
setDbViewScope(String querySchemaText, String operatorText, org.eclipse.xtext.scoping.IScope scope)
Sets new value ofIScope
-
-
-
Method Detail
-
clearDbViewScopes
void clearDbViewScopes(IDtProject project)
ClearDbViewElement
scope for project- Parameters:
project
-IProject
for clearing cached scope, can't benull
-
clearScopes
void clearScopes(String querySchemaText)
Deletes all cached values ofIScope
by text ofQuerySchema
- Parameters:
querySchemaText
- text ofQuerySchema
for deleting cachedIScope
, can't benull
-
getScope
org.eclipse.xtext.scoping.IScope getScope(String querySchemaText, String operatorText)
- Parameters:
querySchemaText
- corresponding to theQuerySchema
- the first key for caching scope, can't benull
operatorText
- corresponding to theQuerySchemaOperator
- the second key for caching scope, can't benull
- Returns:
IScope
of the caching elements corresponding to the scope, can benull
in case when there is no anything cached values
-
setDbViewScope
void setDbViewScope(String querySchemaText, String operatorText, org.eclipse.xtext.scoping.IScope scope)
Sets new value ofIScope
- Parameters:
querySchemaText
- corresponding to theQuerySchema
- the first key for caching scope, can't benull
operatorText
- corresponding to theQuerySchemaOperator
- the second key for caching scope, can't benull
scope
-IScope
of the caching elements corresponding to the scope, can't benull
-
addDbViewScope
void addDbViewScope(IDtProject project, org.eclipse.xtext.scoping.IScope dbViewScope)
- Parameters:
project
- actual project, can't benull
dbViewScope
-IScope
corresponding to theDbViewElement
, can't benull
-
getDbViewScope
org.eclipse.xtext.scoping.IScope getDbViewScope(IDtProject project)
- Parameters:
project
- actualIProject
, can't benull
- Returns:
IScope
corresponding to theDbViewElement
ornull
if scope wasn't cached for this project
-
-