Package com._1c.g5.v8.dt.bsl.resource
Class BslEventsService
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.resource.BslEventsService
-
public class BslEventsService extends Object
Service for "bslEventsExtension" extension point
-
-
Constructor Summary
Constructors Constructor Description BslEventsService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<Event,CaseInsensitiveString>
getAllModuleEvents(Module module)
Gets module with their handlers name.Map<CaseInsensitiveString,List<org.eclipse.emf.ecore.EObject>>
getEventHandlers(Module module)
Map<CaseInsensitiveString,List<org.eclipse.emf.ecore.EObject>>
getEventHandlersContainer(Module module)
Gets all correspondence between name of event handler and collection of appropriateEObject
which are processed by handler (EventHandlerContainer
,CommandHandlerContainer
)Map<CaseInsensitiveString,List<Collection<TypeItem>>>
getHandlerParamTypes(Module module)
Gets all list of parameters types given method is assigned for.boolean
hasEventHandler(Module module, String methodName)
Checks that method inModule
with concrete name is event handler
-
-
-
Method Detail
-
getHandlerParamTypes
public Map<CaseInsensitiveString,List<Collection<TypeItem>>> getHandlerParamTypes(Module module)
Gets all list of parameters types given method is assigned for. Checks all registered extension points- Parameters:
module
- bsl module, can't benull
- Returns:
- correspondence between name of event handler and collection of appropriate its lists of parameters type, never
null
-
getEventHandlers
public Map<CaseInsensitiveString,List<org.eclipse.emf.ecore.EObject>> getEventHandlers(Module module)
-
hasEventHandler
public boolean hasEventHandler(Module module, String methodName)
Checks that method inModule
with concrete name is event handler- Parameters:
module
-Module
for checking method with concrente name as event handler, cannot benull
methodName
- name of the method checking as event handler, cannot benull
- Returns:
true
if method with namemethodName
is event handler,false
otherwise
-
getEventHandlersContainer
public Map<CaseInsensitiveString,List<org.eclipse.emf.ecore.EObject>> getEventHandlersContainer(Module module)
Gets all correspondence between name of event handler and collection of appropriateEObject
which are processed by handler (EventHandlerContainer
,CommandHandlerContainer
)- Parameters:
module
- bsl module, can't benull
- Returns:
- correspondence between name of event handler and collection of appropriate
EObject
which are processed by handler (EventHandlerContainer
,CommandHandlerContainer
), nevernull
-
getAllModuleEvents
public Map<Event,CaseInsensitiveString> getAllModuleEvents(Module module)
Gets module with their handlers name. Checks all registered extension points- Parameters:
module
- BslModule
- Returns:
- with their handlers name, never
null
-
-