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 appropriateEObjectwhich 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.booleanhasEventHandler(Module module, String methodName)Checks that method inModulewith 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 inModulewith concrete name is event handler- Parameters:
module-Modulefor checking method with concrente name as event handler, cannot benullmethodName- name of the method checking as event handler, cannot benull- Returns:
trueif method with namemethodNameis event handler,falseotherwise
-
getEventHandlersContainer
public Map<CaseInsensitiveString,List<org.eclipse.emf.ecore.EObject>> getEventHandlersContainer(Module module)
Gets all correspondence between name of event handler and collection of appropriateEObjectwhich are processed by handler (EventHandlerContainer,CommandHandlerContainer)- Parameters:
module- bsl module, can't benull- Returns:
- correspondence between name of event handler and collection of appropriate
EObjectwhich 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
-
-