public class ModulePathEntry extends java.lang.Object implements IModulePathEntry
| Modifier and Type | Class and Description |
|---|---|
static class |
ModulePathEntry.Multi
Combines an IMultiModuleEntry with further locations in order to support patch-module.
|
| Constructor and Description |
|---|
ModulePathEntry(IPath path,
ClasspathLocation location) |
| Modifier and Type | Method and Description |
|---|---|
static IModule |
getAutomaticModule(ClasspathLocation location) |
ClasspathLocation[] |
getClasspathLocations() |
IModule |
getModule()
Get the module that this entry contributes.
|
char[][] |
getModulesDeclaringPackage(java.lang.String qualifiedPackageName,
java.lang.String moduleName)
Answer the relevant modules that declare the given package.
|
IPath |
getPath() |
boolean |
hasCompilationUnit(java.lang.String qualifiedPackageName,
java.lang.String moduleName)
Answer whether the given package has any compilation unit (.java or .class) in the given module.
|
boolean |
isAutomaticModule()
Specifies whether this entry represents an automatic module.
|
char[][] |
listPackages()
Lists all packages in this modulepath entry.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetModule, servesModulepublic ModulePathEntry(IPath path,
ClasspathLocation location)
public IPath getPath()
public ClasspathLocation[] getClasspathLocations()
public IModule getModule()
IModulePathEntrygetModule in interface IModulePathEntrypublic boolean isAutomaticModule()
IModulePathEntryisAutomaticModule in interface IModulePathEntrypublic static IModule getAutomaticModule(ClasspathLocation location)
public char[][] getModulesDeclaringPackage(java.lang.String qualifiedPackageName,
java.lang.String moduleName)
IModulePathEntrygetModulesDeclaringPackage in interface IModulePathEntrypublic boolean hasCompilationUnit(java.lang.String qualifiedPackageName,
java.lang.String moduleName)
IModulePathEntryhasCompilationUnit in interface IModulePathEntryqualifiedPackageName - '/'-separated package namemoduleName - if non-null only CUs attached to the given module should be consideredpublic char[][] listPackages()
IModulePathEntrylistPackages in interface IModulePathEntry