Class ModuleAndExportMethodNameProvider

    • Constructor Detail

      • ModuleAndExportMethodNameProvider

        public ModuleAndExportMethodNameProvider​(IV8Project v8project,
                                                 org.eclipse.xtext.scoping.IGlobalScopeProvider scopeProvider)
        Instantiates a new value.
        Parameters:
        v8project - the V8 project, cannot be null
        scopeProvider - the scope provider, cannot be null
    • Method Detail

      • getCommonModulesMethods

        public List<Pair<String,​String>> getCommonModulesMethods​(Iterable<org.eclipse.xtext.resource.IEObjectDescription> moduleDescriptions,
                                                                       com.google.common.base.Predicate<org.eclipse.emf.ecore.EObject> predicate)
        Description copied from interface: ICommonModuleMethodNamesProvider
        Returns pair of module names and containing module methods by predicate.
        Specified by:
        getCommonModulesMethods in interface ICommonModuleMethodNamesProvider
        Parameters:
        moduleDescriptions - the list of description of common module, cannot be null
        predicate - the predicate action for filtering methods, can be null
        Returns:
        the pair of module methods, never null
      • getCommonModuleMethodsNames

        public List<String> getCommonModuleMethodsNames​(org.eclipse.xtext.resource.IEObjectDescription moduleDescription,
                                                        com.google.common.base.Predicate<org.eclipse.emf.ecore.EObject> predicate)
        Description copied from interface: ICommonModuleMethodNamesProvider
        Returns containing module methods names by predicate.
        Specified by:
        getCommonModuleMethodsNames in interface ICommonModuleMethodNamesProvider
        Parameters:
        moduleDescription - the description of common module, cannot be null
        predicate - the predicate action for filtering methods, can be null
        Returns:
        the methods names, never null
      • getCommonModuleMethods

        public List<Method> getCommonModuleMethods​(org.eclipse.xtext.resource.IEObjectDescription moduleDescription,
                                                   com.google.common.base.Predicate<org.eclipse.emf.ecore.EObject> predicate)
        Returns module export methods by predicate.
        Parameters:
        moduleDescription - the description of common module, cannot be null
        predicate - the predicate action for filtering methods, can be null
        Returns:
        the module export methods, never null