Package gw.internal.gosu.module.fs
Class JavaResourceImpl
java.lang.Object
gw.internal.gosu.module.fs.JavaResourceImpl
- All Implemented Interfaces:
IResource,Serializable
- Direct Known Subclasses:
JavaDirectoryImpl,JavaFileImpl
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancreate()booleandelete()booleangetName()Gets this file's or directory's name.Gets this file's our directory's parent directory.getPath()inthashCode()booleanisChildOf(IDirectory dir) Indicates whether this resource is a direct child of the given directory.booleanisDescendantOf(IDirectory dir) Indicates whether this resource is a descendant of the given directory.booleanisInJar()booleantoString()toURI()
-
Field Details
-
_file
-
-
Constructor Details
-
JavaResourceImpl
-
-
Method Details
-
getParent
Description copied from interface:IResourceGets this file's our directory's parent directory. -
getName
Description copied from interface:IResourceGets this file's or directory's name. -
delete
- Specified by:
deletein interfaceIResource- Throws:
IOException
-
toURI
-
getPath
-
isChildOf
Description copied from interface:IResourceIndicates whether this resource is a direct child of the given directory. -
isDescendantOf
Description copied from interface:IResourceIndicates whether this resource is a descendant of the given directory.- Specified by:
isDescendantOfin interfaceIResource- Parameters:
dir- the directory which would be the ancestor- Returns:
- true if this is a descendant of the given directory
-
toJavaFile
- Specified by:
toJavaFilein interfaceIResource
-
isJavaFile
public boolean isJavaFile()- Specified by:
isJavaFilein interfaceIResource
-
equals
-
hashCode
public int hashCode() -
toString
-
create
public boolean create() -
isInJar
public boolean isInJar()
-