Klasse ModulePathEntry

java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.builder.ModulePathEntry
Alle implementierten Schnittstellen:
IModulePathEntry
Bekannte direkte Unterklassen:
ModulePathEntry.Multi

public class ModulePathEntry extends Object implements IModulePathEntry
Represents a project on the module path.
  • Konstruktordetails

    • ModulePathEntry

      public ModulePathEntry(org.eclipse.core.runtime.IPath path, ClasspathLocation location)
  • Methodendetails

    • getPath

      public org.eclipse.core.runtime.IPath getPath()
    • getClasspathLocations

      public ClasspathLocation[] getClasspathLocations()
    • getModule

      public IModule getModule()
      Beschreibung aus Schnittstelle kopiert: IModulePathEntry
      Get the module that this entry contributes. May be null, for instance when this entry does not represent a single module
      Angegeben von:
      getModule in Schnittstelle IModulePathEntry
      Gibt zurück:
      The module that this entry contributes or null
    • isAutomaticModule

      public boolean isAutomaticModule()
      Beschreibung aus Schnittstelle kopiert: IModulePathEntry
      Specifies whether this entry represents an automatic module.
      Angegeben von:
      isAutomaticModule in Schnittstelle IModulePathEntry
      Gibt zurück:
      true if this is an automatic module, false otherwise
    • getAutomaticModule

      public static IModule getAutomaticModule(ClasspathLocation location)
    • getModulesDeclaringPackage

      public char[][] getModulesDeclaringPackage(String qualifiedPackageName, String moduleName)
      Beschreibung aus Schnittstelle kopiert: 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.
      Angegeben von:
      getModulesDeclaringPackage in Schnittstelle IModulePathEntry
    • hasCompilationUnit

      public boolean hasCompilationUnit(String qualifiedPackageName, String moduleName)
      Beschreibung aus Schnittstelle kopiert: 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.
      Angegeben von:
      hasCompilationUnit in Schnittstelle IModulePathEntry
      Parameter:
      qualifiedPackageName - '/'-separated package name
      moduleName - if non-null only CUs attached to the given module should be considered
      Gibt zurück:
      true iff a .java or .class file could be found in the given module / package.
    • listPackages

      public char[][] listPackages()
      Beschreibung aus Schnittstelle kopiert: IModulePathEntry
      Lists all packages in this modulepath entry.
      Angegeben von:
      listPackages in Schnittstelle IModulePathEntry
      Gibt zurück:
      array of flat, dot-separated package names