Class ProjectEntry

java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.ProjectEntry
All Implemented Interfaces:
IModulePathEntry

public class ProjectEntry extends Object implements IModulePathEntry
Represents a project
  • Constructor Details

    • ProjectEntry

      public ProjectEntry(JavaProject project)
  • Method Details

    • getModule

      public IModule 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 interface IModulePathEntry
      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 interface IModulePathEntry
      Returns:
      true if this is an automatic module, false otherwise
    • getModulesDeclaringPackage

      public char[][] getModulesDeclaringPackage(String qualifiedPackageName, String moduleName)
      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 interface IModulePathEntry
    • hasCompilationUnit

      public boolean hasCompilationUnit(String qualifiedPackageName, String moduleName)
      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 interface IModulePathEntry
      Parameters:
      qualifiedPackageName - '/'-separated package name
      moduleName - 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.