Package spoon.compiler
Interface SpoonFolder
- All Superinterfaces:
SpoonResource
- All Known Implementing Classes:
FileSystemFolder
,FilteringFolder
,VirtualFolder
,ZipFolder
A Spoon resource that represents a folder.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a file in this foldervoid
addFolder(SpoonFolder source)
Adds a sub folder in this folderGets all the files (including folders) in the folder.Gets all the Java source files in the folder.getFiles()
Gets all the files (excluding folders) in the folder.Gets the subfolders in this folder.Methods inherited from interface spoon.compiler.SpoonResource
getFileSystemParent, getName, getParent, getPath, isArchive, isFile, toFile
-
Method Details
-
getFiles
Gets all the files (excluding folders) in the folder. -
getAllFiles
Gets all the files (including folders) in the folder. -
getAllJavaFiles
Gets all the Java source files in the folder. -
getSubFolders
List<SpoonFolder> getSubFolders()Gets the subfolders in this folder. -
addFile
Adds a file in this folder -
addFolder
Adds a sub folder in this folder
-