Package spoon.support.compiler
Class VirtualFolder
java.lang.Object
spoon.support.compiler.VirtualFolder
- All Implemented Interfaces:
SpoonFolder,SpoonResource
- Direct Known Subclasses:
FilteringFolder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a file in this foldervoidaddFolder(SpoonFolder o)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 parent of this resource on the file system.getName()Gets the name of this resource.Gets the folder that contains this resource.getPath()Gets this resource path.Gets the subfolders in this folder.booleanTells if this resource is an archive.booleanisFile()Tells if this resource is a file.toFile()Gets the corresponding file if possible (returns null if this resource does not correspond to any file on the filesystem).toString()
-
Field Details
-
files
-
-
Constructor Details
-
VirtualFolder
public VirtualFolder()
-
-
Method Details
-
addFile
Description copied from interface:SpoonFolderAdds a file in this folder- Specified by:
addFilein interfaceSpoonFolder
-
addFolder
Description copied from interface:SpoonFolderAdds a sub folder in this folder- Specified by:
addFolderin interfaceSpoonFolder
-
getAllFiles
Description copied from interface:SpoonFolderGets all the files (including folders) in the folder.- Specified by:
getAllFilesin interfaceSpoonFolder
-
getAllJavaFiles
Description copied from interface:SpoonFolderGets all the Java source files in the folder.- Specified by:
getAllJavaFilesin interfaceSpoonFolder
-
getFiles
Description copied from interface:SpoonFolderGets all the files (excluding folders) in the folder.- Specified by:
getFilesin interfaceSpoonFolder
-
getName
Description copied from interface:SpoonResourceGets the name of this resource.- Specified by:
getNamein interfaceSpoonResource
-
getParent
Description copied from interface:SpoonResourceGets the folder that contains this resource.- Specified by:
getParentin interfaceSpoonResource
-
getSubFolders
Description copied from interface:SpoonFolderGets the subfolders in this folder.- Specified by:
getSubFoldersin interfaceSpoonFolder
-
isFile
public boolean isFile()Description copied from interface:SpoonResourceTells if this resource is a file.- Specified by:
isFilein interfaceSpoonResource
-
getPath
Description copied from interface:SpoonResourceGets this resource path.- Specified by:
getPathin interfaceSpoonResource
-
getFileSystemParent
Description copied from interface:SpoonResourceGets the parent of this resource on the file system.- Specified by:
getFileSystemParentin interfaceSpoonResource
-
isArchive
public boolean isArchive()Description copied from interface:SpoonResourceTells if this resource is an archive.- Specified by:
isArchivein interfaceSpoonResource
-
toFile
Description copied from interface:SpoonResourceGets the corresponding file if possible (returns null if this resource does not correspond to any file on the filesystem).- Specified by:
toFilein interfaceSpoonResource
-
toString
-