Package com._1c.g5.v8.dt.bsl.scoping
Class BslCachedScopeProvider
java.lang.Object
com._1c.g5.v8.dt.bsl.scoping.BslCachedScopeProvider
Special provider for caching values of
This class provides only values of
IScope
getting from BslScopeProvider
. This class provides only values of
IScope
depending from Module
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Types of Bsl module scope. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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)
-
Constructor Details
-
BslCachedScopeProvider
public BslCachedScopeProvider()
-
-
Method Details
-
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
-
clearScopes
Deletes all cached values ofIScope
byModule
- Parameters:
module
- actual BslModule
for deleting cachedIScope
, can't benull
-