public enum IjModuleType extends Enum<IjModuleType>
The types in this enum are ordered by priority. When multiple targets apply the type on a module only the type with the highest priority is used as the result type.
For example, if one target's rule sets the type to ANDROID_MODULE and another target's rule sets it to JAVA_MODULE, the final module type would be ANDROID_MODULE.
Enum Constant and Description |
---|
ANDROID_MODULE
A module with code that does not contain Android resources.
|
ANDROID_RESOURCES_MODULE
Similar to
ANDROID_MODULE but can contain Android resources and thus cannot be
aggregated with a module located in the parent directory. |
INTELLIJ_PLUGIN_MODULE
Modules that contain IntelliJ plugins use this custom type to indicate that they should be run
in an environment with an IDEA installation.
|
JAVA_MODULE |
PYTHON_MODULE |
UNKNOWN_MODULE |
Modifier and Type | Method and Description |
---|---|
boolean |
canBeAggregated(IjProjectConfig projectConfig) |
int |
getAggregationLimit(IjProjectConfig projectConfig) |
String |
getImlModuleType() |
abstract Optional<String> |
getSdkName(IjProjectConfig projectConfig) |
abstract String |
getSdkType(IjProjectConfig projectConfig) |
boolean |
hasHigherPriorityThan(IjModuleType moduleType) |
static IjModuleType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IjModuleType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IjModuleType INTELLIJ_PLUGIN_MODULE
public static final IjModuleType ANDROID_RESOURCES_MODULE
ANDROID_MODULE
but can contain Android resources and thus cannot be
aggregated with a module located in the parent directory.public static final IjModuleType ANDROID_MODULE
ANDROID_RESOURCES_MODULE
public static final IjModuleType JAVA_MODULE
public static final IjModuleType PYTHON_MODULE
public static final IjModuleType UNKNOWN_MODULE
public static IjModuleType[] values()
for (IjModuleType c : IjModuleType.values()) System.out.println(c);
public static IjModuleType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract Optional<String> getSdkName(IjProjectConfig projectConfig)
public abstract String getSdkType(IjProjectConfig projectConfig)
public boolean canBeAggregated(IjProjectConfig projectConfig)
public String getImlModuleType()
public boolean hasHigherPriorityThan(IjModuleType moduleType)
public int getAggregationLimit(IjProjectConfig projectConfig)