Class NonJavaResource

java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.aspectj.org.eclipse.jdt.internal.core.NonJavaResource
All Implemented Interfaces:
IJarEntryResource, org.eclipse.core.resources.IStorage, org.eclipse.core.runtime.IAdaptable

public class NonJavaResource extends org.eclipse.core.runtime.PlatformObject implements IJarEntryResource
  • Field Details

    • parent

      protected Object parent
    • resource

      protected org.eclipse.core.resources.IResource resource
  • Constructor Details

    • NonJavaResource

      public NonJavaResource(Object parent, org.eclipse.core.resources.IResource resource)
  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getChildren

      public IJarEntryResource[] getChildren()
      Description copied from interface: IJarEntryResource
      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.
      Specified by:
      getChildren in interface IJarEntryResource
      Returns:
      the children of this jar entry resource
    • getContents

      public InputStream getContents() throws org.eclipse.core.runtime.CoreException
      Specified by:
      getContents in interface org.eclipse.core.resources.IStorage
      Throws:
      org.eclipse.core.runtime.CoreException
    • getEntryName

      protected String getEntryName()
    • getFullPath

      public org.eclipse.core.runtime.IPath getFullPath()
      Description copied from interface: IJarEntryResource
      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.

      Specified by:
      getFullPath in interface IJarEntryResource
      Specified by:
      getFullPath in interface org.eclipse.core.resources.IStorage
      Returns:
      the absolute path of this jar entry resource
    • getName

      public String getName()
      Specified by:
      getName in interface org.eclipse.core.resources.IStorage
    • getPackageFragmentRoot

      public IPackageFragmentRoot getPackageFragmentRoot()
      Description copied from interface: IJarEntryResource
      Returns the package fragment root this jar entry resource belongs to.
      Specified by:
      getPackageFragmentRoot in interface IJarEntryResource
      Returns:
      the package fragment root this jar entry resource belongs to.
    • getParent

      public Object getParent()
      Description copied from interface: IJarEntryResource
      Returns the parent of this jar entry resource. This is either an IJarEntryResource, an IPackageFragment or an IPackageFragmentRoot.
      Specified by:
      getParent in interface IJarEntryResource
      Returns:
      the parent of this jar entry resource
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isFile

      public boolean isFile()
      Description copied from interface: IJarEntryResource
      Returns true if this jar entry represents a file. Returns false if it is a directory.
      Specified by:
      isFile in interface IJarEntryResource
      Returns:
      whether this jar entry is a file
    • isReadOnly

      public boolean isReadOnly()
      Specified by:
      isReadOnly in interface org.eclipse.core.resources.IStorage
    • toString

      public String toString()
      Overrides:
      toString in class Object