Schnittstelle IJarEntryResource

Alle Superschnittstellen:
org.eclipse.core.runtime.IAdaptable, org.eclipse.core.resources.IStorage
Alle bekannten Implementierungsklassen:
JarEntryDirectory, JarEntryFile, JarEntryResource, NonJavaResource

public interface IJarEntryResource extends org.eclipse.core.resources.IStorage
A jar entry corresponding to a non-Java resource in an archive IPackageFragment or IPackageFragmentRoot.

One can navigate the non-Java resource tree using the getChildren() and getParent() methods. Jar entry resources are either files (isFile() returns true) or directories (isFile() returns false). Files don't have any children and the returned array is always empty.

Jar entry resources that refer to the same element are guaranteed to be equal, but not necessarily identical.

Seit:
3.3
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    Returns the list of children of this jar entry resource.
    org.eclipse.core.runtime.IPath
    Returns the full, absolute path of this jar entry resource relative to the archive this jar entry belongs to.
    Returns the package fragment root this jar entry resource belongs to.
    Returns the parent of this jar entry resource.
    boolean
    Returns true if this jar entry represents a file.

    Von Schnittstelle geerbte Methoden org.eclipse.core.runtime.IAdaptable

    getAdapter

    Von Schnittstelle geerbte Methoden org.eclipse.core.resources.IStorage

    getContents, getName, isReadOnly
  • Methodendetails

    • getChildren

      IJarEntryResource[] getChildren()
      Returns the list of children of this jar entry resource. Returns an empty array if this jar entry is a file, or if this jar entry is a directory and it has no children.
      Gibt zurück:
      the children of this jar entry resource
    • getFullPath

      org.eclipse.core.runtime.IPath getFullPath()
      Returns the full, absolute path of this jar entry resource relative to the archive this jar entry belongs to.

      A jar entry resource's full path indicates the route from the root of the archive to the jar entry resource. Within an archive, there is exactly one such path for any given jar entry resource.

      The returned path is absolute (i.e. it starts with a separator) and it never has a trailing separator.

      Angegeben von:
      getFullPath in Schnittstelle org.eclipse.core.resources.IStorage
      Gibt zurück:
      the absolute path of this jar entry resource
    • getParent

      Object getParent()
      Returns the parent of this jar entry resource. This is either an IJarEntryResource, an IPackageFragment or an IPackageFragmentRoot.
      Gibt zurück:
      the parent of this jar entry resource
    • getPackageFragmentRoot

      IPackageFragmentRoot getPackageFragmentRoot()
      Returns the package fragment root this jar entry resource belongs to.
      Gibt zurück:
      the package fragment root this jar entry resource belongs to.
    • isFile

      boolean isFile()
      Returns true if this jar entry represents a file. Returns false if it is a directory.
      Gibt zurück:
      whether this jar entry is a file