Interface SpoonResource

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.io.File getFileSystemParent()
      Gets the parent of this resource on the file system.
      java.lang.String getName()
      Gets the name of this resource.
      SpoonFolder getParent()
      Gets the folder that contains this resource.
      java.lang.String getPath()
      Gets this resource path.
      boolean isArchive()
      Tells if this resource is an archive.
      boolean isFile()
      Tells if this resource is a file.
      java.io.File toFile()
      Gets the corresponding file if possible (returns null if this resource does not correspond to any file on the filesystem).
    • Method Detail

      • getParent

        SpoonFolder getParent()
        Gets the folder that contains this resource.
      • getName

        java.lang.String getName()
        Gets the name of this resource.
      • isFile

        boolean isFile()
        Tells if this resource is a file.
      • isArchive

        boolean isArchive()
        Tells if this resource is an archive.
      • getPath

        java.lang.String getPath()
        Gets this resource path.
      • getFileSystemParent

        java.io.File getFileSystemParent()
        Gets the parent of this resource on the file system.
      • toFile

        java.io.File toFile()
        Gets the corresponding file if possible (returns null if this resource does not correspond to any file on the filesystem).