Class ModuleFinder
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.batch.ModuleFinder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static org.aspectj.org.eclipse.jdt.internal.compiler.batch.ModuleFinder.AddExport
extractAddonExport
(String option) Parses the --add-exports command line option and returns the package export definitions.protected static String[]
extractAddonRead
(String option) Extracts the single reads clause from the given command line option (--add-reads).protected static FileSystem.Classpath
findModule
(File file, String destinationPath, Parser parser, Map<String, String> options, boolean isModulepath, String release) static List
<FileSystem.Classpath> findModules
(File f, String destinationPath, Parser parser, Map<String, String> options, boolean isModulepath, String release) protected static IModule
scanForModule
(FileSystem.Classpath modulePath, File file, Parser parser, boolean considerAutoModules, String release) protected static void
scanForModules
(String destinationPath, Parser parser, Map<String, String> options, boolean isModulepath, boolean thisAnAutomodule, List<FileSystem.Classpath> collector, File file, String release)
-
Constructor Details
-
ModuleFinder
public ModuleFinder()
-
-
Method Details
-
findModules
-
findModule
-
scanForModules
-
scanForModule
protected static IModule scanForModule(FileSystem.Classpath modulePath, File file, Parser parser, boolean considerAutoModules, String release) -
extractAddonRead
Extracts the single reads clause from the given command line option (--add-reads). The result is a String[] with two element, first being the source module and second being the target module. The expected format is:--add-reads <source-module>=<target-module>
- Returns:
- a String[] with source and target module of the "reads" clause.
-
extractAddonExport
protected static org.aspectj.org.eclipse.jdt.internal.compiler.batch.ModuleFinder.AddExport extractAddonExport(String option) Parses the --add-exports command line option and returns the package export definitions.The expected format is:
--add-exports <source-module>/<package>=<target-module>(,<target-module>)*
- Parameters:
option
- the option to parse- Returns:
- an
ModuleFinder.AddExport
structure.
-