org.aspectj.org.eclipse.jdt.internal.core
Class NonJavaResource

java.lang.Object
  extended by PlatformObject
      extended by org.aspectj.org.eclipse.jdt.internal.core.NonJavaResource
All Implemented Interfaces:
IJarEntryResource

public class NonJavaResource
extends PlatformObject
implements IJarEntryResource


Field Summary
protected  java.lang.Object parent
           
protected  IResource resource
           
 
Constructor Summary
NonJavaResource(java.lang.Object parent, IResource resource)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 IJarEntryResource[] getChildren()
          Returns the list of children of this jar entry resource.
 java.io.InputStream getContents()
           
protected  java.lang.String getEntryName()
           
 IPath getFullPath()
          Returns the full, absolute path of this jar entry resource relative to the archive this jar entry belongs to.
 java.lang.String getName()
           
 IPackageFragmentRoot getPackageFragmentRoot()
          Returns the package fragment root this jar entry resource belongs to.
 java.lang.Object getParent()
          Returns the parent of this jar entry resource.
 int hashCode()
           
 boolean isFile()
          Returns true if this jar entry represents a file.
 boolean isReadOnly()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

parent

protected java.lang.Object parent

resource

protected IResource resource
Constructor Detail

NonJavaResource

public NonJavaResource(java.lang.Object parent,
                       IResource resource)
Method Detail

equals

public boolean equals(java.lang.Object obj)

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 java.io.InputStream getContents()
                                throws CoreException
Throws:
CoreException

getEntryName

protected java.lang.String getEntryName()

getFullPath

public 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
Returns:
the absolute path of this jar entry resource

getName

public java.lang.String getName()

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 java.lang.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()

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()

toString

public java.lang.String toString()