|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.runtime.PlatformObject
org.eclipse.jdt.internal.core.NonJavaResource
public class NonJavaResource
| 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()
Returns an open input stream on the contents of this storage. |
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. |
java.lang.String |
getName()
Returns the name of this storage. |
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()
Returns whether this storage is read-only. |
java.lang.String |
toString()
|
| Methods inherited from class org.eclipse.core.runtime.PlatformObject |
|---|
getAdapter |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Constructor Detail |
|---|
public NonJavaResource(java.lang.Object parent,
IResource resource)
| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic IJarEntryResource[] getChildren()
IJarEntryResource
getChildren in interface IJarEntryResource
public java.io.InputStream getContents()
throws org.eclipse.core.runtime.CoreException
IStorage
getContents in interface IStorageorg.eclipse.core.runtime.CoreException - if the contents of this storage could
not be accessed. See any refinements for more information.public org.eclipse.core.runtime.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 IStoragegetFullPath in interface IJarEntryResourcepublic java.lang.String getName()
IStorage
getName in interface IStoragenull if this storage has no nameIStorage.getFullPath()public IPackageFragmentRoot getPackageFragmentRoot()
IJarEntryResource
getPackageFragmentRoot in interface IJarEntryResourcepublic java.lang.Object getParent()
IJarEntryResourceIJarEntryResource, an IPackageFragment
or an IPackageFragmentRoot.
getParent in interface IJarEntryResourcepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isFile()
IJarEntryResourcetrue if this jar entry represents a file.
Returns false if it is a directory.
isFile in interface IJarEntryResourcepublic boolean isReadOnly()
IStorage
isReadOnly in interface IStoragetrue if this storage is read-onlypublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||