Package com._1c.g5.v8.dt.bsl.scoping
Class BslCachedScopeProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.scoping.BslCachedScopeProvider
-
public class BslCachedScopeProvider extends Object
Special provider for caching values ofIScope
getting fromBslScopeProvider
.
This class provides only values ofIScope
depending fromModule
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BslCachedScopeProvider.BslCachedScopeType
Types of Bsl module scope.
-
Constructor Summary
Constructors Constructor Description BslCachedScopeProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPropertyScope(org.eclipse.core.resources.IProject project, org.eclipse.xtext.scoping.IScope propertyScope)
Adds new value ofIScope
corresponding to theProperty
void
addScope(Block block, Environments envs, BslCachedScopeProvider.BslCachedScopeType scopeType, org.eclipse.xtext.scoping.IScope scope)
Add new value ofIScope
void
addTypeItemScope(org.eclipse.core.resources.IProject project, org.eclipse.xtext.scoping.IScope typeItemScope)
Adds new value ofIScope
corresponding to theTypeItem
void
clearPropertyScopes(org.eclipse.core.resources.IProject project)
Clear property scope for projectvoid
clearScopes(Module module)
Deletes all cached values ofIScope
byModule
void
clearTypeItemsScopes(org.eclipse.core.resources.IProject project)
Clear type items scope for projectorg.eclipse.xtext.scoping.IScope
getPropertyScope(org.eclipse.core.resources.IProject project)
org.eclipse.xtext.scoping.IScope
getScope(Block block, Environments envs, BslCachedScopeProvider.BslCachedScopeType scopeType)
Gets cached value ofIScope
byModule
org.eclipse.xtext.scoping.IScope
getTypeItemScope(org.eclipse.core.resources.IProject project)
-
-
-
Method Detail
-
clearTypeItemsScopes
public void clearTypeItemsScopes(org.eclipse.core.resources.IProject project)
Clear type items scope for project- Parameters:
project
-IProject
for clearing cached scope, can't benull
-
clearPropertyScopes
public void clearPropertyScopes(org.eclipse.core.resources.IProject project)
Clear property scope for project- Parameters:
project
-IProject
for clearing cached scope, can't benull
-
addTypeItemScope
public void addTypeItemScope(org.eclipse.core.resources.IProject project, org.eclipse.xtext.scoping.IScope typeItemScope)
Adds new value ofIScope
corresponding to theTypeItem
- Parameters:
project
- actual project, can't benull
typeItemScope
-IScope
corresponding to theTypeItem
, can't benull
-
addPropertyScope
public void addPropertyScope(org.eclipse.core.resources.IProject project, org.eclipse.xtext.scoping.IScope propertyScope)
Adds new value ofIScope
corresponding to theProperty
- Parameters:
project
- actual project, can't benull
propertyScope
-IScope
corresponding to theProperty
, can't benull
-
getTypeItemScope
public org.eclipse.xtext.scoping.IScope getTypeItemScope(org.eclipse.core.resources.IProject project)
- Parameters:
project
- actualIProject
, can't benull
- Returns:
IScope
corresponding to theTypeItem
ornull
if scope wasn't cached for this project
-
getPropertyScope
public org.eclipse.xtext.scoping.IScope getPropertyScope(org.eclipse.core.resources.IProject project)
- Parameters:
project
- actualIProject
, can't benull
- Returns:
IScope
corresponding to theProperty
ornull
if scope wasn't cached for this project
-
addScope
public void addScope(Block block, Environments envs, BslCachedScopeProvider.BslCachedScopeType scopeType, org.eclipse.xtext.scoping.IScope scope)
Add new value ofIScope
- Parameters:
block
- correspondingBlock
, can't benull
envs
- actualEnvironments
of scope, can't benull
scopeType
- type of the adding scope, seeBslCachedScopeProvider.BslCachedScopeType
, can't benull
scope
- computingIScope
byModule
, can't benull
-
getScope
public org.eclipse.xtext.scoping.IScope getScope(Block block, Environments envs, BslCachedScopeProvider.BslCachedScopeType scopeType)
Gets cached value ofIScope
byModule
- Parameters:
block
- actual BslBlock
for getting cachedIScope
, can't benull
envs
- actualEnvironments
of scope, can't benull
scopeType
- type of getting scope, seeBslCachedScopeProvider.BslCachedScopeType
, can't benull
- Returns:
- caching value of
IScope
byModule
, can benull
in case when there is no anything cached values
-
-