public class OneProjectItemCompileScope extends ExportableUserDataHolderBase implements CompileScope
EMPTY_ARRAY
Constructor and Description |
---|
OneProjectItemCompileScope(Project project,
VirtualFile file) |
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.
|
java.util.Collection<ModuleSourceSet> |
getAffectedSourceSets() |
VirtualFile [] |
getFiles(FileType fileType,
boolean inSourceOnly)
Returns the list of files within the scope.
|
exportUserData
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAffectedUnloadedModules
exportUserData
getUserData, putUserData
public OneProjectItemCompileScope(Project project, VirtualFile file)
public VirtualFile [] getFiles(FileType fileType, boolean inSourceOnly)
CompileScope
getFiles
in interface CompileScope
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.public boolean belongs(java.lang.String url)
CompileScope
belongs
in interface CompileScope
url
- an VFS url. Note that actual file may not exist on the disk.public Module [] getAffectedModules()
CompileScope
getAffectedModules
in interface CompileScope
public java.util.Collection<ModuleSourceSet> getAffectedSourceSets()
getAffectedSourceSets
in interface CompileScope