Package com._1c.g5.v8.dt.bsl.common
Interface IModuleExtensionService
-
- All Known Implementing Classes:
DefaultModuleExtensionService
,ModuleExtentionService
public interface IModuleExtensionService
Special service for working with extensionModule
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<Pragma,Method>
getExtensionMethods(Module extensionModule, String methodName)
Gets extension method overriding adoptable method with namemethodName
Collection<Module>
getExtensionModules(Module sourceModule)
Gets all extensionModule
by sourceString
getExtensionPrefix(Module module)
Gets prefix of extension project by extension Bsl moduleMap<Pragma,Method>
getSourceMethod(Method extentionMethod)
Gets adoptable method by extension methodMethod
getSourceMethodForFormEventHandler(Module extensionModule, String methodName, BslEventsService eventService)
Gets adoptable method by event handler method name from extension form moduleMap<CaseInsensitiveString,Collection<Pragma>>
getSourceMethodNames(Method extentionMethod)
Gets adoptable method names by extension methodMap<Method,org.eclipse.xtext.util.Pair<Method,String>>
getSourceMethodsForFormEventHandler(Module adoptableModule, Module extensionModule, BslEventsService eventService)
Gets correspondence between methods from source module (this method is event handler for form item event) and their extension methods from extension moduleModule
getSourceModule(Module module)
Gets adoptableModule
by extension Bsl moduleorg.eclipse.emf.ecore.EObject
getSourceObject(org.eclipse.emf.ecore.EObject object)
Gets adoptableEObject
by extensionEObject
.boolean
isAnnotationPragmaAllowed(IV8Project project)
Checks that annotation available for methods of this module.boolean
isCorrectVersionForAnnotationPragma(Module module)
Checks that annotation available for methods of this module.boolean
isExtensionModule(Module module)
Checks that thisModule
corresponding to the extension of configuration
-
-
-
Method Detail
-
getSourceMethod
Map<Pragma,Method> getSourceMethod(Method extentionMethod)
Gets adoptable method by extension method
-
isExtensionModule
boolean isExtensionModule(Module module)
Checks that thisModule
corresponding to the extension of configuration
-
getSourceModule
Module getSourceModule(Module module)
Gets adoptableModule
by extension Bsl module
-
getSourceMethodNames
Map<CaseInsensitiveString,Collection<Pragma>> getSourceMethodNames(Method extentionMethod)
Gets adoptable method names by extension method
-
getExtensionPrefix
String getExtensionPrefix(Module module)
Gets prefix of extension project by extension Bsl module- Parameters:
module
- extension Bsl module, can't benull
- Returns:
- prefix of extension project by extension Bsl module, never
null
-
getSourceObject
org.eclipse.emf.ecore.EObject getSourceObject(org.eclipse.emf.ecore.EObject object)
Gets adoptableEObject
by extensionEObject
. See methodIModelObjectAdopter#getSourceModule(EObject)
- Parameters:
object
- extensionEObject
, can't benull
- Returns:
- adoptable
EObject
, can benull
if adoptable object wasn't found
-
getExtensionMethods
Map<Pragma,Method> getExtensionMethods(Module extensionModule, String methodName)
Gets extension method overriding adoptable method with namemethodName
- Parameters:
extensionModule
- extension module, can't benull
methodName
- name of the adoptable method, can't benull
- Returns:
- extension methods by
Pragma
literalc correspondence to the adoptable method with namemethodName
, nevernull
-
getSourceMethodForFormEventHandler
Method getSourceMethodForFormEventHandler(Module extensionModule, String methodName, BslEventsService eventService)
Gets adoptable method by event handler method name from extension form module- Parameters:
extensionModule
- form module extension, can't benull
methodName
- name of the event handler extension, can't benull
eventService
- actualBslEventsService
, can't benull
- Returns:
- adoptable method by event handler method name from extension form module, can be
null
if adoptable method wasn't found
-
isCorrectVersionForAnnotationPragma
boolean isCorrectVersionForAnnotationPragma(Module module)
Checks that annotation available for methods of this module. Annotation is unsupported for project version is less than 8.3.9 or for configuration with compatibility mode less than 8.3.9- Parameters:
module
- checkingModule
, can't benull
- Returns:
true
if annotation available for methods of this module,false
otherwise
-
isAnnotationPragmaAllowed
boolean isAnnotationPragmaAllowed(IV8Project project)
Checks that annotation available for methods of this module. Annotation is unsupported for project version is less than 8.3.9 or for configuration with compatibility mode less than 8.3.9- Parameters:
project
- checkingIV8Project
, can't benull
- Returns:
true
if annotation available for methods of this module,false
otherwise
-
getExtensionModules
Collection<Module> getExtensionModules(Module sourceModule)
Gets all extensionModule
by source
-
getSourceMethodsForFormEventHandler
Map<Method,org.eclipse.xtext.util.Pair<Method,String>> getSourceMethodsForFormEventHandler(Module adoptableModule, Module extensionModule, BslEventsService eventService)
Gets correspondence between methods from source module (this method is event handler for form item event) and their extension methods from extension module- Parameters:
adoptableModule
- sourceModule
, can't benull
extensionModule
- extensionModule
, can't benull
eventService
- actualBslEventsService
, can't benull
- Returns:
- map with key
Method
from source module and value is extensionMethod
of sourceMethod
and its string presentation of call type annotation, nevernull
-
-