Package com._1c.g5.v8.dt.bsl.typesystem
Class ExportMethodTypeProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.typesystem.ExportMethodTypeProvider
-
public final class ExportMethodTypeProvider extends Object
Special provider for caching bsl exporting method returning types and parameters types
-
-
Constructor Summary
Constructors Constructor Description ExportMethodTypeProvider(Path path, Path oldPath, IResourceLookup resourceLookup, IRuntimeVersionSupport versionSupport, org.eclipse.xtext.scoping.IScopeProvider scopeProvider, ValueTableDynamicContextDefProvider valueTableDynamicContextDefProvider, ValueTreeDynamicContextDefProvider valueTreeDynamicContextDefProvider)
Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate()
Activates the provider.void
close(org.eclipse.core.resources.IProject project, boolean clean)
Closes the store for the specified project.List<TypeItem>
getMethodParamType(Method method, ParamSet set, int index)
Gets type of exporting bsl method parameterList<TypeItem>
getMethodType(Method method)
Gets returning method typesboolean
hasContextDefMethodTypeInformation(BslContextDef contextDef)
Checks that provider contains information about methods returning types fromcontextDef
void
open(org.eclipse.core.resources.IProject project, boolean clean)
Opens the store for the specified project.void
saveContextDefMethodType(BslContextDef contextDef, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
Saves information about context def method returning types and about context def method parameters types
-
-
-
Constructor Detail
-
ExportMethodTypeProvider
@Inject public ExportMethodTypeProvider(Path path, Path oldPath, IResourceLookup resourceLookup, IRuntimeVersionSupport versionSupport, org.eclipse.xtext.scoping.IScopeProvider scopeProvider, ValueTableDynamicContextDefProvider valueTableDynamicContextDefProvider, ValueTreeDynamicContextDefProvider valueTreeDynamicContextDefProvider)
Constructs a new instance.- Parameters:
path
- The provider directory path. May not benull
.oldPath
- The old provider path. May not benull
.resourceLookup
- The resource lookup. May not benull
.versionSupport
- The version support. May not benull
.scopeProvider
- The scope provider. May not benull
.valueTableDynamicContextDefProvider
- The value table dynamic context def provider. May not benull
.valueTreeDynamicContextDefProvider
- The value tree dynamic context def provider. May not benull
.
-
-
Method Detail
-
activate
public void activate()
Activates the provider.
-
open
public void open(org.eclipse.core.resources.IProject project, boolean clean)
Opens the store for the specified project.- Parameters:
project
- The project. May not benull
.clean
- The flag indicating whether the store must be cleaned.
-
close
public void close(org.eclipse.core.resources.IProject project, boolean clean)
Closes the store for the specified project.- Parameters:
project
- The project. May not benull
.shutdown
- The flag indicating whether the application is being shut down.clean
- The flag indicating whether the store must be cleaned.
-
saveContextDefMethodType
public void saveContextDefMethodType(BslContextDef contextDef, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
Saves information about context def method returning types and about context def method parameters types- Parameters:
contextDef
- bslModule
contextDef, contains exporting module methods, can't benull
cancelIndicator
-CancelIndicator
for cancel saving, cannot benull
-
hasContextDefMethodTypeInformation
public boolean hasContextDefMethodTypeInformation(BslContextDef contextDef)
Checks that provider contains information about methods returning types fromcontextDef
- Parameters:
contextDef
- checking bslModule
contextDef, contains exporting module methods, can't benull
- Returns:
true
if provider contains information about methods returning types fromcontextDef
,false
otherwise
-
getMethodType
public List<TypeItem> getMethodType(Method method)
Gets returning method types- Parameters:
method
- exporting method from bsl module, can't benull
- Returns:
- returning method types, never
null
-
-