Interface IFileFragment
- All Known Implementing Classes:
FileFragmentImpl
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 IFile
EMPTY_ARRAY -
Method Summary
Modifier and TypeMethodDescriptionThe file element hosting the fragment e.g., a comment or string literalintintdefault IFileFacilitates virtual files e.g., IFileFragmentgetScope()voidsetContainer(Object container) voidMethods inherited from interface IFile
getBaseName, getExtension, openInputStream, openOutputStream, openOutputStreamForAppendMethods inherited from interface IResource
create, delete, exists, getFileSystem, getName, getParent, getPath, isChildOf, isDescendantOf, isInJar, isJavaFile, toJavaFile, toURI
-
Method Details
-
getEnclosingFile
IFile getEnclosingFile() -
getScope
String getScope() -
getOffset
int getOffset() -
setOffset
-
getLength
int getLength() -
getHostKind
HostKind getHostKind() -
getContainer
Object getContainer()The file element hosting the fragment e.g., a comment or string literal -
setContainer
-
getPhysicalFile
Description copied from interface:IFileFacilitates virtual files e.g., IFileFragment- Specified by:
getPhysicalFilein interfaceIFile
-