Class ProjectEntry
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.ProjectEntry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the module that this entry contributes.char[][]getModulesDeclaringPackage(String qualifiedPackageName, String moduleName) Answer the relevant modules that declare the given package.booleanhasCompilationUnit(String qualifiedPackageName, String moduleName) Answer whether the given package has any compilation unit (.java or .class) in the given module.booleanSpecifies whether this entry represents an automatic module.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.IModulePathEntry
getModule, listPackages, servesModule
-
Constructor Details
-
ProjectEntry
-
-
Method Details
-
getModule
Description copied from interface:IModulePathEntryGet the module that this entry contributes. May be null, for instance when this entry does not represent a single module- Specified by:
getModulein interfaceIModulePathEntry- Returns:
- The module that this entry contributes or null
-
isAutomaticModule
public boolean isAutomaticModule()Description copied from interface:IModulePathEntrySpecifies whether this entry represents an automatic module.- Specified by:
isAutomaticModulein interfaceIModulePathEntry- Returns:
- true if this is an automatic module, false otherwise
-
getModulesDeclaringPackage
Description copied from interface:IModulePathEntryAnswer 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:
getModulesDeclaringPackagein interfaceIModulePathEntry
-
hasCompilationUnit
Description copied from interface:IModulePathEntryAnswer 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:
hasCompilationUnitin 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.
-