Package com._1c.g5.v8.dt.ql.scoping
Class QlCachedScopeProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.ql.scoping.QlCachedScopeProvider
-
- All Implemented Interfaces:
IQlCachedScopeProvider
public class QlCachedScopeProvider extends Object implements IQlCachedScopeProvider
Special provider for caching values ofIScopegetting fromQlScopeProvider.
This class provides only values ofIScopedepending from ql query text
-
-
Constructor Summary
Constructors Constructor Description QlCachedScopeProvider()
-
Method Summary
All Methods Instance Methods Concrete 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
public void clearDbViewScopes(IDtProject project)
Description copied from interface:IQlCachedScopeProviderClearDbViewElementscope for project- Specified by:
clearDbViewScopesin interfaceIQlCachedScopeProvider- Parameters:
project-IProjectfor clearing cached scope, can't benull
-
addDbViewScope
public void addDbViewScope(IDtProject project, org.eclipse.xtext.scoping.IScope dbViewScope)
Description copied from interface:IQlCachedScopeProvider- Specified by:
addDbViewScopein interfaceIQlCachedScopeProvider- Parameters:
project- actual project, can't benulldbViewScope-IScopecorresponding to theDbViewElement, can't benull
-
getDbViewScope
public org.eclipse.xtext.scoping.IScope getDbViewScope(IDtProject project)
Description copied from interface:IQlCachedScopeProvider- Specified by:
getDbViewScopein interfaceIQlCachedScopeProvider- Parameters:
project- actualIProject, can't benull- Returns:
IScopecorresponding to theDbViewElementornullif scope wasn't cached for this project
-
setDbViewScope
public void setDbViewScope(String querySchemaText, String operatorText, org.eclipse.xtext.scoping.IScope scope)
Description copied from interface:IQlCachedScopeProviderSets new value ofIScope- Specified by:
setDbViewScopein interfaceIQlCachedScopeProvider- 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
-
getScope
public org.eclipse.xtext.scoping.IScope getScope(String querySchemaText, String operatorText)
Description copied from interface:IQlCachedScopeProvider- Specified by:
getScopein interfaceIQlCachedScopeProvider- 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
-
clearScopes
public void clearScopes(String querySchemaText)
Description copied from interface:IQlCachedScopeProviderDeletes all cached values ofIScopeby text ofQuerySchema- Specified by:
clearScopesin interfaceIQlCachedScopeProvider- Parameters:
querySchemaText- text ofQuerySchemafor deleting cachedIScope, can't benull
-
-