Class FileFragmentImpl
java.lang.Object
manifold.api.fs.def.FileFragmentImpl
- All Implemented Interfaces:
IFile, IFileFragment, IResource
-
Field Summary
Fields inherited from interface IFile
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancreate()booleandelete()booleanbooleanexists()Indicates whether this resource exists.The file element hosting the fragment e.g., a comment or string literalThe file system supporting this resourceintgetName()Gets this file's or directory's name.intGets this file's our directory's parent directory.getPath()getScope()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()booleanvoidsetContainer(Object container) voidtoURI()Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IFileFragment
getPhysicalFile
-
Constructor Details
-
FileFragmentImpl
-
-
Method Details
-
getScope
- Specified by:
getScopein interfaceIFileFragment
-
getContent
-
getContainer
Description copied from interface:IFileFragmentThe file element hosting the fragment e.g., a comment or string literal- Specified by:
getContainerin interfaceIFileFragment
-
setContainer
- Specified by:
setContainerin interfaceIFileFragment
-
getHostKind
- Specified by:
getHostKindin interfaceIFileFragment
-
getEnclosingFile
- Specified by:
getEnclosingFilein interfaceIFileFragment
-
getOffset
public int getOffset()- Specified by:
getOffsetin interfaceIFileFragment
-
setOffset
- Specified by:
setOffsetin interfaceIFileFragment
-
getLength
public int getLength()- Specified by:
getLengthin interfaceIFileFragment
-
openInputStream
- Specified by:
openInputStreamin interfaceIFile
-
openOutputStream
- Specified by:
openOutputStreamin interfaceIFile
-
openOutputStreamForAppend
- Specified by:
openOutputStreamForAppendin interfaceIFile
-
getExtension
- Specified by:
getExtensionin interfaceIFile
-
getBaseName
- Specified by:
getBaseNamein interfaceIFile
-
getFileSystem
Description copied from interface:IResourceThe file system supporting this resource- Specified by:
getFileSystemin interfaceIResource
-
getParent
Description copied from interface:IResourceGets this file's our directory's parent directory. -
getName
-
exists
-
delete
-
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
-
isInJar
-
create
-
equals
-
hashCode
-