|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Module
Represents a module in an IDEA project.
ModuleManager.getModules(),
ModuleComponent| Field Summary | |
|---|---|
static Module[] |
EMPTY_ARRAY
The empty array of modules which cab be reused to avoid unnecessary allocations. |
| Method Summary | |
|---|---|
VirtualFile |
getModuleFile()
Returns the VirtualFile for the module .iml file. |
java.lang.String |
getModuleFilePath()
Returns the path to the module .iml file. |
ModuleType |
getModuleType()
Returns the type of this module. |
java.lang.String |
getName()
Returns the name of this module. |
java.lang.String |
getOptionValue(java.lang.String optionName)
Gets the value of a custom option for this module. |
PomModule |
getPom()
Returns the POM representation of this module. |
Project |
getProject()
Returns the project to which this module belongs. |
boolean |
isDisposed()
Checks if the module instance has been disposed and unloaded. |
boolean |
isSavePathsRelative()
Returns the value of the option "Use absolute/relative paths for files outside the module file directory" for this module. |
void |
setOption(java.lang.String optionName,
java.lang.String optionValue)
Sets a custom option for this module. |
void |
setSavePathsRelative(boolean b)
Sets the value of the option "Use absolute/relative paths for files outside the module file directory" for this module. |
| Methods inherited from interface com.intellij.openapi.components.ComponentManager |
|---|
getComponent, getComponent, getComponent, getComponentInterfaces, getComponents, getPicoContainer, hasComponent |
| Methods inherited from interface com.intellij.openapi.util.UserDataHolder |
|---|
getUserData, putUserData |
| Field Detail |
|---|
static final Module[] EMPTY_ARRAY
| Method Detail |
|---|
VirtualFile getModuleFile()
VirtualFile for the module .iml file.
@NotNull java.lang.String getModuleFilePath()
@NotNull ModuleType getModuleType()
@NotNull Project getProject()
@NotNull java.lang.String getName()
boolean isDisposed()
boolean isSavePathsRelative()
void setSavePathsRelative(boolean b)
b - true if relative paths are used, false if absolute paths are used.
void setOption(@NotNull
java.lang.String optionName,
@NotNull
java.lang.String optionValue)
optionName - the name of the custom option.optionValue - the value of the custom option.
@Nullable
java.lang.String getOptionValue(@NotNull
java.lang.String optionName)
optionName - the name of the custom option.
@NotNull PomModule getPom()
POM representation of this module.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||