@ Override public String getModuleName ( ) { String moduleName = moduleNameFromModuleDescriptor ; if ( moduleName == null || moduleName . isEmpty ( ) ) { moduleName = moduleNameFromManifestFile ; } if ( moduleName == null || moduleName . isEmpty ( ) ) { if ( derivedAutomaticModuleName == null ) { derivedAutomaticModuleName = JarUtils . derivedAutomaticModuleName ( zipFilePath ) ; } moduleName = derivedAutomaticModuleName ; } return moduleName == null || moduleName . isEmpty ( ) ? null : moduleName ; }
Get module name from module descriptor or get the automatic module name from the manifest file or derive an automatic module name from the jar name .