public interface Module extends ComponentManager, AreaInstance, Disposable
ModuleManager.getModules()
,
ModuleComponent
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT_TYPE |
static Module[] |
EMPTY_ARRAY
The empty array of modules which cab be reused to avoid unnecessary allocations.
|
Modifier and Type | Method and Description |
---|---|
default void |
clearOption(java.lang.String key)
Deprecated.
Please store options in your own
PersistentStateComponent |
GlobalSearchScope |
getModuleContentScope() |
GlobalSearchScope |
getModuleContentWithDependenciesScope() |
VirtualFile |
getModuleFile()
Returns the
VirtualFile for the module .iml file. |
@SystemIndependent java.lang.String |
getModuleFilePath()
System-independent path to the .iml file or empty string if module is not persistent.
|
GlobalSearchScope |
getModuleRuntimeScope(boolean includeTests) |
GlobalSearchScope |
getModuleScope() |
GlobalSearchScope |
getModuleScope(boolean includeTests) |
GlobalSearchScope |
getModuleTestsWithDependentsScope() |
default java.lang.String |
getModuleTypeName() |
GlobalSearchScope |
getModuleWithDependenciesAndLibrariesScope(boolean includeTests) |
GlobalSearchScope |
getModuleWithDependenciesScope() |
GlobalSearchScope |
getModuleWithDependentsScope() |
GlobalSearchScope |
getModuleWithLibrariesScope() |
java.lang.String |
getName()
Returns the name of this module.
|
java.lang.String |
getOptionValue(java.lang.String key)
Deprecated.
Please store options in your own
PersistentStateComponent |
Project |
getProject()
Returns the project to which this module belongs.
|
boolean |
isDisposed()
Checks if the module instance has been disposed and unloaded.
|
boolean |
isLoaded() |
default void |
setModuleType(java.lang.String name) |
void |
setOption(java.lang.String key,
java.lang.String value)
Deprecated.
Please store options in your own
PersistentStateComponent |
createError, createError, getComponent, getComponent, getComponent, getComponentInstancesOfType, getComponentInstancesOfType, getComponents, getDisposed, getExtensionArea, getExtensions, getMessageBus, getPicoContainer, getService, getService, getServiceIfCreated, hasComponent, instantiateClass, instantiateClassWithConstructorInjection, instantiateExtensionWithPicoContainerOnlyIfNeeded, isDisposedOrDisposeInProgress, logError
getUserData, putUserData
dispose
static final Module[] EMPTY_ARRAY
static final java.lang.String ELEMENT_TYPE
VirtualFile getModuleFile()
VirtualFile
for the module .iml file.@SystemIndependent java.lang.String getModuleFilePath()
Project getProject()
java.lang.String getName()
boolean isDisposed()
isDisposed
in interface ComponentManager
boolean isLoaded()
@Deprecated default void clearOption(java.lang.String key)
PersistentStateComponent
@Deprecated void setOption(java.lang.String key, java.lang.String value)
PersistentStateComponent
@Deprecated java.lang.String getOptionValue(java.lang.String key)
PersistentStateComponent
GlobalSearchScope getModuleScope()
GlobalSearchScope getModuleScope(boolean includeTests)
includeTests
- whether to include test sourceGlobalSearchScope getModuleWithLibrariesScope()
GlobalSearchScope getModuleWithDependenciesScope()
GlobalSearchScope getModuleContentScope()
GlobalSearchScope getModuleContentWithDependenciesScope()
GlobalSearchScope getModuleWithDependenciesAndLibrariesScope(boolean includeTests)
includeTests
- whether test source and test dependencies should be includedGlobalSearchScope getModuleWithDependentsScope()
GlobalSearchScope getModuleTestsWithDependentsScope()
getModuleWithDependentsScope()
, but with test source/resources includedGlobalSearchScope getModuleRuntimeScope(boolean includeTests)
includeTests
- whether test source and test dependencies should be includeddefault java.lang.String getModuleTypeName()
default void setModuleType(java.lang.String name)