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 ofIScope
getting fromQlScopeProvider
.
This class provides only values ofIScope
depending from ql query text
-
-
Constructor Summary
Constructors Constructor Description QlCachedScopeProvider()
-
Method Summary
All Methods Instance Methods Concrete 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
public void clearDbViewScopes(IDtProject project)
Description copied from interface:IQlCachedScopeProvider
ClearDbViewElement
scope for project- Specified by:
clearDbViewScopes
in interfaceIQlCachedScopeProvider
- Parameters:
project
-IProject
for 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:
addDbViewScope
in interfaceIQlCachedScopeProvider
- Parameters:
project
- actual project, can't benull
dbViewScope
-IScope
corresponding to theDbViewElement
, can't benull
-
getDbViewScope
public org.eclipse.xtext.scoping.IScope getDbViewScope(IDtProject project)
Description copied from interface:IQlCachedScopeProvider
- Specified by:
getDbViewScope
in interfaceIQlCachedScopeProvider
- Parameters:
project
- actualIProject
, can't benull
- Returns:
IScope
corresponding to theDbViewElement
ornull
if 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:IQlCachedScopeProvider
Sets new value ofIScope
- Specified by:
setDbViewScope
in interfaceIQlCachedScopeProvider
- 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
-
getScope
public org.eclipse.xtext.scoping.IScope getScope(String querySchemaText, String operatorText)
Description copied from interface:IQlCachedScopeProvider
- Specified by:
getScope
in interfaceIQlCachedScopeProvider
- 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
-
clearScopes
public void clearScopes(String querySchemaText)
Description copied from interface:IQlCachedScopeProvider
Deletes all cached values ofIScope
by text ofQuerySchema
- Specified by:
clearScopes
in interfaceIQlCachedScopeProvider
- Parameters:
querySchemaText
- text ofQuerySchema
for deleting cachedIScope
, can't benull
-
-