Klasse JrtPackageFragmentRoot

Alle implementierten Schnittstellen:
IBufferChangedListener, IJavaElement, IOpenable, IPackageFragmentRoot, IParent, IModulePathEntry, org.eclipse.core.runtime.IAdaptable

public class JrtPackageFragmentRoot extends JarPackageFragmentRoot implements IModulePathEntry
A package fragment root that corresponds to a module in a JRT file system.
Siehe auch:
  • Ungültige Referenz
    org.eclipse.jdt.core.IPackageFragmentRoot
  • Ungültige Referenz
    org.eclipse.jdt.internal.core.JarPackageFragmentRootInfo
  • Felddetails

  • Konstruktordetails

    • JrtPackageFragmentRoot

      protected JrtPackageFragmentRoot(org.eclipse.core.runtime.IPath jrtPath, String moduleName, JavaProject project, IClasspathAttribute[] extraAttributes)
      Constructs a package fragment root which represents a module contained in a JRT.
  • Methodendetails

    • computeChildren

      protected boolean computeChildren(OpenableElementInfo info, org.eclipse.core.resources.IResource underlyingResource) throws JavaModelException
      Beschreibung aus Klasse kopiert: JarPackageFragmentRoot
      Compute the package fragment children of this package fragment root. These are all of the directory zip entries, and any directories implied by the path of class files contained in the jar of this package fragment root.
      Setzt außer Kraft:
      computeChildren in Klasse JarPackageFragmentRoot
      Löst aus:
      JavaModelException - The resource associated with this package fragment root does not exist
    • equals

      public boolean equals(Object o)
      Beschreibung aus Klasse kopiert: JarPackageFragmentRoot
      Returns true if this handle represents the same jar as the given handle. Two jars are equal if they share the same zip file.
      Setzt außer Kraft:
      equals in Klasse JarPackageFragmentRoot
      Siehe auch:
    • getElementName

      public String getElementName()
      Beschreibung aus Schnittstelle kopiert: IJavaElement
      Returns the name of this element. This is a handle-only method.
      Angegeben von:
      getElementName in Schnittstelle IJavaElement
      Setzt außer Kraft:
      getElementName in Klasse JarPackageFragmentRoot
      Gibt zurück:
      the element name
      Siehe auch:
      • IAdaptable
    • getPackageFragment

      public PackageFragment getPackageFragment(String[] pkgName)
      Setzt außer Kraft:
      getPackageFragment in Klasse JarPackageFragmentRoot
    • hashCode

      public int hashCode()
      Beschreibung aus Klasse kopiert: JavaElement
      Returns the hash code for this Java element. By default, the hash code for an element is a combination of its name and parent's hash code. Elements with other requirements must override this method.
      Setzt außer Kraft:
      hashCode in Klasse JarPackageFragmentRoot
    • toStringInfo

      protected void toStringInfo(int tab, StringBuffer buffer, Object info, boolean showResolvedInfo)
      Beschreibung aus Klasse kopiert: JavaElement
      Debugging purposes
      Setzt außer Kraft:
      toStringInfo in Klasse PackageFragmentRoot
      Parameter:
      showResolvedInfo - TODO
    • 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
    • isComplianceJava9OrHigher

      protected boolean isComplianceJava9OrHigher()
      Setzt außer Kraft:
      isComplianceJava9OrHigher in Klasse PackageFragmentRoot
    • getModulesDeclaringPackage

      public char[][] getModulesDeclaringPackage(String qualifiedPackageName, String requestedModuleName)
      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
    • ignoreErrorStatus

      protected boolean ignoreErrorStatus(org.eclipse.core.runtime.IStatus status)
      Setzt außer Kraft:
      ignoreErrorStatus in Klasse Openable