Package spoon.compiler
Class SpoonResourceHelper
java.lang.Object
spoon.compiler.SpoonResourceHelper
This class defines a helper for manipulating resources.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SpoonFile
createFile(File f)
Creates theSpoonFile
corresponding to the given file.static SpoonFolder
createFolder(File f)
Creates theSpoonFolder
corresponding to the given file.static SpoonResource
createResource(File f)
Creates theSpoonResource
corresponding to the given file.static boolean
Tells if the given file is an archive file.static boolean
Tells if the given file is file (files are not archives).static List<SpoonResource>
Creates the list ofSpoonResource
corresponding to the given paths (files, folders, archives).
-
Method Details
-
isArchive
Tells if the given file is an archive file. -
isFile
Tells if the given file is file (files are not archives). -
resources
Creates the list ofSpoonResource
corresponding to the given paths (files, folders, archives).- Throws:
FileNotFoundException
-
createFile
Creates theSpoonFile
corresponding to the given file.- Throws:
FileNotFoundException
-
createResource
Creates theSpoonResource
corresponding to the given file.- Throws:
FileNotFoundException
-
createFolder
Creates theSpoonFolder
corresponding to the given file.- Throws:
FileNotFoundException
-