public class FileSetCompileScope extends ExportableUserDataHolderBase implements CompileScope
EMPTY_ARRAY| Constructor and Description |
|---|
FileSetCompileScope(java.util.Collection<VirtualFile> files,
Module [] modules) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
belongs(java.lang.String url)
Checks if the file with the specified URL belongs to the scope.
|
Module [] |
getAffectedModules()
Returns the list of modules files in which belong to the scope.
|
VirtualFile [] |
getFiles(FileType fileType,
boolean inSourceOnly)
Returns the list of files within the scope.
|
java.util.Collection<VirtualFile> |
getRootFiles() |
exportUserDatachangeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMapequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAffectedSourceSets, getAffectedUnloadedModulesexportUserDatagetUserData, putUserDatapublic FileSetCompileScope(java.util.Collection<VirtualFile> files, Module [] modules)
public Module [] getAffectedModules()
CompileScopegetAffectedModules in interface CompileScopepublic java.util.Collection<VirtualFile> getRootFiles()
public VirtualFile [] getFiles(FileType fileType, boolean inSourceOnly)
CompileScopegetFiles in interface CompileScopefileType - the type of the files. Null should be passed if all available files are needed.inSourceOnly - if true, files are searched only in directories within the scope that are marked as "sources" or "test sources" in module settings.
Otherwise files are searched in all directories that belong to the scope.public boolean belongs(java.lang.String url)
CompileScopebelongs in interface CompileScopeurl - an VFS url. Note that actual file may not exist on the disk.