Class AutomaticModuleNaming
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.env.AutomaticModuleNaming
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic char[]
determineAutomaticModuleName
(String jarFileName) Determine the automatic module name of a given jar as specified inModuleFinder.of(java.nio.file.Path...)
static char[]
determineAutomaticModuleName
(String fileName, boolean isFile, Manifest manifest) Determine the automatic module name of a given jar or project as specified inModuleFinder.of(java.nio.file.Path...)
static char[]
determineAutomaticModuleNameFromFileName
(String name, boolean skipDirectory, boolean removeExtension) Determine the automatic module name if no "Automatic-Module-Name" was found in the Manifest, as specified inModuleFinder.of(java.nio.file.Path...)
static char[]
Determine the automatic module name of a given jar or project as defined by an Automatic-Module-Name header in its manifest.
-
Constructor Details
-
AutomaticModuleNaming
public AutomaticModuleNaming()
-
-
Method Details
-
determineAutomaticModuleName
Determine the automatic module name of a given jar as specified inModuleFinder.of(java.nio.file.Path...)
-
determineAutomaticModuleName
public static char[] determineAutomaticModuleName(String fileName, boolean isFile, Manifest manifest) Determine the automatic module name of a given jar or project as specified inModuleFinder.of(java.nio.file.Path...)
- Parameters:
fileName
- names either a jar file or a java project in the workspaceisFile
-true
indicates that fileName denotes a file,false
must be used for projectsmanifest
- representation of the META-INF/MANIFEST.MF entry within the given source (jar or project), ornull
- Returns:
- the derived module name or
null
-
determineAutomaticModuleNameFromManifest
Determine the automatic module name of a given jar or project as defined by an Automatic-Module-Name header in its manifest.- Parameters:
manifest
- representation of the META-INF/MANIFEST.MF entry within the given source (jar or project), ornull
- Returns:
- the derived module name or
null
-
determineAutomaticModuleNameFromFileName
public static char[] determineAutomaticModuleNameFromFileName(String name, boolean skipDirectory, boolean removeExtension) Determine the automatic module name if no "Automatic-Module-Name" was found in the Manifest, as specified inModuleFinder.of(java.nio.file.Path...)
- Parameters:
name
- the filename (or directory name)skipDirectory
- if true, parent directory names are skippedremoveExtension
- if true, the ".jar" extension is removed.
-