Package gw.internal.gosu.module.fs
Class PathResourceImpl
java.lang.Object
gw.internal.gosu.module.fs.PathResourceImpl
- All Implemented Interfaces:
IResource
,Serializable
- Direct Known Subclasses:
PathDirectoryImpl
,PathFileImpl
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
create()
boolean
delete()
boolean
(package private) Path
get_Path()
getName()
Gets this file's or directory's name.Gets this file's our directory's parent directory.getPath()
int
hashCode()
boolean
isChildOf
(IDirectory dir) Indicates whether this resource is a direct child of the given directory.boolean
isDescendantOf
(IDirectory dir) Indicates whether this resource is a descendant of the given directory.boolean
isInJar()
boolean
toString()
toURI()
-
Field Details
-
_path
-
-
Constructor Details
-
PathResourceImpl
PathResourceImpl(Path path)
-
-
Method Details
-
get_Path
Path get_Path() -
getParent
Description copied from interface:IResource
Gets this file's our directory's parent directory. -
getName
Description copied from interface:IResource
Gets this file's or directory's name. -
delete
- Specified by:
delete
in interfaceIResource
- Throws:
IOException
-
toURI
-
getPath
-
isChildOf
Description copied from interface:IResource
Indicates whether this resource is a direct child of the given directory. -
isDescendantOf
Description copied from interface:IResource
Indicates whether this resource is a descendant of the given directory.- Specified by:
isDescendantOf
in interfaceIResource
- Parameters:
dir
- the directory which would be the ancestor- Returns:
- true if this is a descendant of the given directory
-
toJavaFile
- Specified by:
toJavaFile
in interfaceIResource
-
isJavaFile
public boolean isJavaFile()- Specified by:
isJavaFile
in interfaceIResource
-
equals
-
hashCode
public int hashCode() -
toString
-
create
public boolean create() -
isInJar
public boolean isInJar()
-