Interface IModuleDescription

    • Method Detail

      • getRequiredModuleNames

        String[] getRequiredModuleNames()
                                 throws JavaModelException
        Answer the names of all modules directly required from this module.
        Returns:
        a non-null array of module names
        Throws:
        JavaModelException
        Since:
        3.14
      • getProvidedServiceNames

        String[] getProvidedServiceNames()
                                  throws JavaModelException
        Get provided service names for this module.
        Returns:
        a non-null array of provided service names
        Throws:
        JavaModelException
        Since:
        3.18
      • getExportedPackageNames

        String[] getExportedPackageNames​(IModuleDescription targetModule)
                                  throws JavaModelException
        Get names of exported packages.
        Parameters:
        targetModule - filter the result to include only packages exported to the given module, unless null.
        Returns:
        a non-null array of exported package names
        Throws:
        JavaModelException
        Since:
        3.18
      • getOpenedPackageNames

        String[] getOpenedPackageNames​(IModuleDescription targetModule)
                                throws JavaModelException
        Get names of opened packages.
        Parameters:
        targetModule - filter the result to include only packages opened to the given module, unless null.
        Returns:
        a non-null array of opened package names
        Throws:
        JavaModelException
        Since:
        3.18
      • isAutoModule

        default boolean isAutoModule()
        Returns:
        true if automatic module, else false
        Since:
        3.14