Class ModulePathEntry
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.builder.ModulePathEntry
- All Implemented Interfaces:
IModulePathEntry
- Direct Known Subclasses:
ModulePathEntry.Multi
Represents a project on the module path.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Combines an IMultiModuleEntry with further locations in order to support patch-module. -
Constructor Summary
ConstructorsConstructorDescriptionModulePathEntry(org.eclipse.core.runtime.IPath path, ClasspathLocation location)
-
Method Summary
Modifier and TypeMethodDescriptionstatic IModule
getAutomaticModule(ClasspathLocation location)
Get the module that this entry contributes.char[][]
getModulesDeclaringPackage(String qualifiedPackageName, String moduleName)
Answer the relevant modules that declare the given package.org.eclipse.core.runtime.IPath
getPath()
boolean
hasCompilationUnit(String qualifiedPackageName, String moduleName)
Answer whether the given package has any compilation unit (.java or .class) in the given module.boolean
Specifies whether this entry represents an automatic module.char[][]
Lists all packages in this modulepath entry.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.IModulePathEntry
getModule, servesModule
-
Constructor Details
-
ModulePathEntry
-
-
Method Details
-
getPath
public org.eclipse.core.runtime.IPath getPath() -
getClasspathLocations
-
getModule
Description copied from interface:IModulePathEntry
Get the module that this entry contributes. May be null, for instance when this entry does not represent a single module- Specified by:
getModule
in interfaceIModulePathEntry
- Returns:
- The module that this entry contributes or null
-
isAutomaticModule
public boolean isAutomaticModule()Description copied from interface:IModulePathEntry
Specifies whether this entry represents an automatic module.- Specified by:
isAutomaticModule
in interfaceIModulePathEntry
- Returns:
- true if this is an automatic module, false otherwise
-
getAutomaticModule
-
getModulesDeclaringPackage
Description copied from interface:IModulePathEntry
Answer the relevant modules that declare the given package. If moduleName is ModuleBinding.ANY then all packages are relevant, if moduleName is ModuleBinding.UNNAMED, then only packages in the unnamed module are relevant, otherwise consider only packages in the module identified by moduleName.- Specified by:
getModulesDeclaringPackage
in interfaceIModulePathEntry
-
hasCompilationUnit
Description copied from interface:IModulePathEntry
Answer whether the given package has any compilation unit (.java or .class) in the given module. For entries representing a single module, the module name should be checked before invoking this method.- Specified by:
hasCompilationUnit
in interfaceIModulePathEntry
- Parameters:
qualifiedPackageName
- '/'-separated package namemoduleName
- if non-null only CUs attached to the given module should be considered- Returns:
- true iff a .java or .class file could be found in the given module / package.
-
listPackages
public char[][] listPackages()Description copied from interface:IModulePathEntry
Lists all packages in this modulepath entry.- Specified by:
listPackages
in interfaceIModulePathEntry
- Returns:
- array of flat, dot-separated package names
-