public class CompositeScope extends ExportableUserDataHolderBase implements CompileScope
EMPTY_ARRAY
Constructor and Description |
---|
CompositeScope(CompileScope [] scopes) |
CompositeScope(CompileScope scope1,
CompileScope scope2) |
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() |
java.util.Collection<java.lang.String> |
getAffectedUnloadedModules() |
VirtualFile [] |
getFiles(FileType fileType,
boolean inSourceOnly)
Returns the list of files within the scope.
|
java.util.Collection<CompileScope> |
getScopes() |
<T> T |
getUserData(Key<T> key) |
exportUserData
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exportUserData
putUserData
public CompositeScope(CompileScope scope1, CompileScope scope2)
public CompositeScope(CompileScope [] scopes)
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
public java.util.Collection<java.lang.String> getAffectedUnloadedModules()
getAffectedUnloadedModules
in interface CompileScope
public <T> T getUserData(Key<T> key)
getUserData
in interface UserDataHolder
getUserData
in class UserDataHolderBase
public java.util.Collection<CompileScope> getScopes()