Package com._1c.g5.v8.dt.ql.scoping
Interface IQlCachedScopeProvider
-
- All Known Implementing Classes:
QlCachedScopeProvider
public interface IQlCachedScopeProviderSpecial provider for caching values ofIScopegetting fromQlScopeProvider.
This class provides only values ofIScopedepending from ql query text
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddDbViewScope(IDtProject project, org.eclipse.xtext.scoping.IScope dbViewScope)voidclearDbViewScopes(IDtProject project)ClearDbViewElementscope for projectvoidclearScopes(String querySchemaText)Deletes all cached values ofIScopeby text ofQuerySchemaorg.eclipse.xtext.scoping.IScopegetDbViewScope(IDtProject project)org.eclipse.xtext.scoping.IScopegetScope(String querySchemaText, String operatorText)voidsetDbViewScope(String querySchemaText, String operatorText, org.eclipse.xtext.scoping.IScope scope)Sets new value ofIScope
-
-
-
Method Detail
-
clearDbViewScopes
void clearDbViewScopes(IDtProject project)
ClearDbViewElementscope for project- Parameters:
project-IProjectfor clearing cached scope, can't benull
-
clearScopes
void clearScopes(String querySchemaText)
Deletes all cached values ofIScopeby text ofQuerySchema- Parameters:
querySchemaText- text ofQuerySchemafor 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 benulloperatorText- corresponding to theQuerySchemaOperator- the second key for caching scope, can't benull- Returns:
IScopeof the caching elements corresponding to the scope, can benullin 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 benulloperatorText- corresponding to theQuerySchemaOperator- the second key for caching scope, can't benullscope-IScopeof 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 benulldbViewScope-IScopecorresponding to theDbViewElement, can't benull
-
getDbViewScope
org.eclipse.xtext.scoping.IScope getDbViewScope(IDtProject project)
- Parameters:
project- actualIProject, can't benull- Returns:
IScopecorresponding to theDbViewElementornullif scope wasn't cached for this project
-
-