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.
|
exportUserDatachangeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMapequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAffectedUnloadedModulesexportUserDatagetUserData, putUserDatapublic OneProjectItemCompileScope(Project project, VirtualFile file)
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.public Module [] getAffectedModules()
CompileScopegetAffectedModules in interface CompileScopepublic java.util.Collection<ModuleSourceSet> getAffectedSourceSets()
getAffectedSourceSets in interface CompileScope