Class BslEventsService


  • public class BslEventsService
    extends Object
    Service for "bslEventsExtension" extension point
    • Constructor Detail

      • BslEventsService

        public BslEventsService()
    • 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 be null
        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)
        Gets all correspondence between name of event handler and collection of appropriate EObject which are processed by handler (Event, Operation)
        Parameters:
        module - bsl module, can't be null
        Returns:
        correspondence between name of event handler and collection of appropriate EObject which are processed by handler (Event, Operation), never null
      • hasEventHandler

        public boolean hasEventHandler​(Module module,
                                       String methodName)
        Checks that method in Module with concrete name is event handler
        Parameters:
        module - Module for checking method with concrente name as event handler, cannot be null
        methodName - name of the method checking as event handler, cannot be null
        Returns:
        true if method with name methodName is event handler, false otherwise
      • getAllModuleEvents

        public Map<Event,​CaseInsensitiveString> getAllModuleEvents​(Module module)
        Gets module with their handlers name. Checks all registered extension points
        Parameters:
        module - Bsl Module
        Returns:
        with their handlers name, never null