Interface IEventsProvider

    • Method Detail

      • isEventHandler

        boolean isEventHandler​(Module module)
        Checks that module can have event handlers i.e. there are method in this module were registered as handler for some events in 1C configuration
        Parameters:
        module - bsl module, can't be null
        Returns:
        true if checking module can have event handlers, false otherwise
      • getAllEventsParamTypes

        Map<CaseInsensitiveString,​List<Collection<TypeItem>>> getAllEventsParamTypes​(Module module)
        Gets all Event given method is assigned for
        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

        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

        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