public class NonJavaResource extends PlatformObject implements IJarEntryResource
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
parent |
protected IResource |
resource |
| Constructor and Description |
|---|
NonJavaResource(java.lang.Object parent,
IResource resource) |
| Modifier and Type | Method and Description |
|---|---|
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() |
public NonJavaResource(java.lang.Object parent,
IResource resource)
public boolean equals(java.lang.Object obj)
public IJarEntryResource[] getChildren()
IJarEntryResourcegetChildren in interface IJarEntryResourcepublic java.io.InputStream getContents()
throws CoreException
CoreExceptionprotected java.lang.String getEntryName()
public IPath getFullPath()
IJarEntryResourceA 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.
getFullPath in interface IJarEntryResourcepublic java.lang.String getName()
public IPackageFragmentRoot getPackageFragmentRoot()
IJarEntryResourcegetPackageFragmentRoot in interface IJarEntryResourcepublic java.lang.Object getParent()
IJarEntryResourceIJarEntryResource, an IPackageFragment
or an IPackageFragmentRoot.getParent in interface IJarEntryResourcepublic int hashCode()
public boolean isFile()
IJarEntryResourcetrue if this jar entry represents a file.
Returns false if it is a directory.isFile in interface IJarEntryResourcepublic boolean isReadOnly()
public java.lang.String toString()