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) |
exportUserDatachangeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMapequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexportUserDataputUserDatapublic CompositeScope(CompileScope scope1, CompileScope scope2)
public CompositeScope(CompileScope [] scopes)
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 CompileScopepublic java.util.Collection<java.lang.String> getAffectedUnloadedModules()
getAffectedUnloadedModules in interface CompileScopepublic <T> T getUserData(Key<T> key)
getUserData in interface UserDataHoldergetUserData in class UserDataHolderBasepublic java.util.Collection<CompileScope> getScopes()