Interface ICommonModuleMethodNamesProvider

    • Field Detail

      • SERVER_MODULES_PREDICATE

        static final com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> SERVER_MODULES_PREDICATE
      • EXPORT_METHODS_PREDICATE

        static final com.google.common.base.Predicate<Method> EXPORT_METHODS_PREDICATE
    • Method Detail

      • getV8project

        IV8Project getV8project()
        Returns the V8 project.
        Returns:
        the V8 project, never null.
      • getCommonModulesMethods

        List<Pair<String,​String>> getCommonModulesMethods​(Iterable<org.eclipse.xtext.resource.IEObjectDescription> moduleDescriptions,
                                                                com.google.common.base.Predicate<org.eclipse.emf.ecore.EObject> predicate)
        Returns pair of module names and containing module methods by predicate.
        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

        List<String> getCommonModuleMethodsNames​(org.eclipse.xtext.resource.IEObjectDescription moduleDescriptions,
                                                 com.google.common.base.Predicate<org.eclipse.emf.ecore.EObject> predicate)
        Returns containing module methods names by predicate.
        Parameters:
        moduleDescriptions - the description of common module, cannot be null
        predicate - the predicate action for filtering methods, can be null
        Returns:
        the methods names, never null
      • getCommonModules

        Iterable<org.eclipse.xtext.resource.IEObjectDescription> getCommonModules​(com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> predicate)
        Returns server modules.
        Returns:
        the server modules, never null