org.aspectj.org.eclipse.jdt.internal.core
Class JarEntryResource
java.lang.Object
PlatformObject
org.aspectj.org.eclipse.jdt.internal.core.JarEntryResource
- All Implemented Interfaces:
- IJarEntryResource
- Direct Known Subclasses:
- JarEntryDirectory, JarEntryFile
public abstract class JarEntryResource
- extends PlatformObject
- implements IJarEntryResource
|
Field Summary |
protected java.lang.Object |
parent
|
protected java.lang.String |
simpleName
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
parent
protected java.lang.Object parent
simpleName
protected java.lang.String simpleName
JarEntryResource
public JarEntryResource(java.lang.String simpleName)
clone
public abstract JarEntryResource clone(java.lang.Object newParent)
equals
public boolean equals(java.lang.Object obj)
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()
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
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.
getZipFile
protected java.util.zip.ZipFile getZipFile()
throws CoreException
- Throws:
CoreException
hashCode
public int hashCode()
isReadOnly
public boolean isReadOnly()
setParent
public void setParent(java.lang.Object parent)