public interface CompileScope extends ExportableUserDataHolder
Modifier and Type | Field and Description |
---|---|
static CompileScope[] |
EMPTY_ARRAY |
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.
|
default java.util.Collection<ModuleSourceSet> |
getAffectedSourceSets() |
default java.util.Collection<java.lang.String> |
getAffectedUnloadedModules() |
VirtualFile [] |
getFiles(FileType fileType,
boolean inSourceOnly)
Returns the list of files within the scope.
|
exportUserData
getUserData, putUserData
static final CompileScope[] EMPTY_ARRAY
VirtualFile [] getFiles(FileType fileType, boolean inSourceOnly)
fileType
- 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.boolean belongs(java.lang.String url)
url
- an VFS url. Note that actual file may not exist on the disk.Module [] getAffectedModules()
default java.util.Collection<java.lang.String> getAffectedUnloadedModules()
default java.util.Collection<ModuleSourceSet> getAffectedSourceSets()