Interface IFileFragment

All Superinterfaces:
IFile, IResource
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.
  • Method Details

    • getEnclosingFile

      IFile getEnclosingFile()
    • getScope

      String getScope()
    • getOffset

      int getOffset()
    • setOffset

      void setOffset(Supplier<Integer> offset)
    • 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: IFile
      Facilitates virtual files e.g., IFileFragment
      Specified by:
      getPhysicalFile in interface IFile