Class ModuleUpdater
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.ModuleUpdater
An instance of this class collects
add-exports
and add-reads
options from
a project's class path entries, and performs the corresponding updates when requested by the compiler.
For patch-module
and limit-modules
see
org.eclipse.jdt.internal.core.builder.ModuleEntryProcessor.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addModuleUpdate
(String moduleName, Consumer<IUpdatableModule> update, IUpdatableModule.UpdateKind kind) void
addReadUnnamedForNonEmptyClasspath
(JavaProject project, IClasspathEntry[] expandedClasspath) void
applyModuleUpdates
(IUpdatableModule compilerModule, IUpdatableModule.UpdateKind kind) void
Detects any ADD_EXPORTS or ADD_READS classpath attributes, parses the value, and collects the resulting module updates.determineModulesOfProjectsWithNonEmptyClasspath
(JavaProject project, IClasspathEntry[] expandedClasspath) getUpdates
(String moduleName)
-
Constructor Details
-
ModuleUpdater
-
-
Method Details
-
computeModuleUpdates
Detects any ADD_EXPORTS or ADD_READS classpath attributes, parses the value, and collects the resulting module updates.- Parameters:
entry
- a classpath entry of the current project.- Throws:
JavaModelException
-
addModuleUpdate
public void addModuleUpdate(String moduleName, Consumer<IUpdatableModule> update, IUpdatableModule.UpdateKind kind) -
applyModuleUpdates
- See Also:
-
addReadUnnamedForNonEmptyClasspath
public void addReadUnnamedForNonEmptyClasspath(JavaProject project, IClasspathEntry[] expandedClasspath) throws JavaModelException - Throws:
JavaModelException
-
determineModulesOfProjectsWithNonEmptyClasspath
public static Set<String> determineModulesOfProjectsWithNonEmptyClasspath(JavaProject project, IClasspathEntry[] expandedClasspath) throws JavaModelException - Throws:
JavaModelException
-
getUpdates
-