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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNonJavaResource(Object parent, org.eclipse.core.resources.IResource resource) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the list of children of this jar entry resource.protected Stringorg.eclipse.core.runtime.IPathReturns the full, absolute path of this jar entry resource relative to the archive this jar entry belongs to.getName()Returns the package fragment root this jar entry resource belongs to.Returns the parent of this jar entry resource.inthashCode()booleanisFile()Returnstrueif this jar entry represents a file.booleantoString()Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapterMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
-
Field Details
-
parent
-
resource
protected org.eclipse.core.resources.IResource resource
-
-
Constructor Details
-
NonJavaResource
-
-
Method Details
-
equals
-
getChildren
Description copied from interface:IJarEntryResourceReturns 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:
getChildrenin interfaceIJarEntryResource- Returns:
- the children of this jar entry resource
-
getContents
- Specified by:
getContentsin interfaceorg.eclipse.core.resources.IStorage- Throws:
org.eclipse.core.runtime.CoreException
-
getEntryName
-
getFullPath
public org.eclipse.core.runtime.IPath getFullPath()Description copied from interface:IJarEntryResourceReturns 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:
getFullPathin interfaceIJarEntryResource- Specified by:
getFullPathin interfaceorg.eclipse.core.resources.IStorage- Returns:
- the absolute path of this jar entry resource
-
getName
- Specified by:
getNamein interfaceorg.eclipse.core.resources.IStorage
-
getPackageFragmentRoot
Description copied from interface:IJarEntryResourceReturns the package fragment root this jar entry resource belongs to.- Specified by:
getPackageFragmentRootin interfaceIJarEntryResource- Returns:
- the package fragment root this jar entry resource belongs to.
-
getParent
Description copied from interface:IJarEntryResourceReturns the parent of this jar entry resource. This is either anIJarEntryResource, anIPackageFragmentor anIPackageFragmentRoot.- Specified by:
getParentin interfaceIJarEntryResource- Returns:
- the parent of this jar entry resource
-
hashCode
-
isFile
public boolean isFile()Description copied from interface:IJarEntryResourceReturnstrueif this jar entry represents a file. Returnsfalseif it is a directory.- Specified by:
isFilein interfaceIJarEntryResource- Returns:
- whether this jar entry is a file
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin interfaceorg.eclipse.core.resources.IStorage
-
toString
-