Package spoon.compiler
Class SpoonResourceHelper
java.lang.Object
spoon.compiler.SpoonResourceHelper
This class defines a helper for manipulating resources.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SpoonFilecreateFile(File f)Creates theSpoonFilecorresponding to the given file.static SpoonFoldercreateFolder(File f)Creates theSpoonFoldercorresponding to the given file.static SpoonResourcecreateResource(File f)Creates theSpoonResourcecorresponding to the given file.static booleanTells if the given file is an archive file.static booleanTells if the given file is file (files are not archives).static List<SpoonResource>Creates the list ofSpoonResourcecorresponding 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 ofSpoonResourcecorresponding to the given paths (files, folders, archives).- Throws:
FileNotFoundException
-
createFile
Creates theSpoonFilecorresponding to the given file.- Throws:
FileNotFoundException
-
createResource
Creates theSpoonResourcecorresponding to the given file.- Throws:
FileNotFoundException
-
createFolder
Creates theSpoonFoldercorresponding to the given file.- Throws:
FileNotFoundException
-