Package manifold.api.fs
Interface IFileFragment
-
- All Known Implementing Classes:
FileFragmentImpl
public interface IFileFragment extends IFile
A fragment of a file that is to be treated separate from the enclosing file. Facilitates inlining structured content in a Java source file as opposed to using a separate resource file.
-
-
Field Summary
-
Fields inherited from interface manifold.api.fs.IFile
EMPTY_ARRAY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ObjectgetContainer()The file element hosting the fragment e.g., a comment or string literalIFilegetEnclosingFile()HostKindgetHostKind()intgetLength()intgetOffset()default IFilegetPhysicalFile()Facilitates virtual files e.g., IFileFragmentStringgetScope()voidsetContainer(Object container)voidsetOffset(Supplier<Integer> offset)-
Methods inherited from interface manifold.api.fs.IFile
getBaseName, getExtension, openInputStream, openOutputStream, openOutputStreamForAppend
-
Methods inherited from interface manifold.api.fs.IResource
create, delete, exists, getFileSystem, getName, getParent, getPath, isChildOf, isDescendantOf, isInJar, isJavaFile, toJavaFile, toURI
-
-
-
-
Method Detail
-
getEnclosingFile
IFile getEnclosingFile()
-
getScope
String getScope()
-
getOffset
int getOffset()
-
getLength
int getLength()
-
getHostKind
HostKind getHostKind()
-
getContainer
Object getContainer()
The file element hosting the fragment e.g., a comment or string literal
-
setContainer
void setContainer(Object container)
-
getPhysicalFile
default IFile getPhysicalFile()
Description copied from interface:IFileFacilitates virtual files e.g., IFileFragment- Specified by:
getPhysicalFilein interfaceIFile
-
-