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 Detail

      • getEnclosingFile

        IFile getEnclosingFile()
      • getOffset

        int getOffset()
      • getLength

        int getLength()
      • 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