api / org.gradle.tooling.model.idea / IdeaModule

IdeaModule

interface IdeaModule : HierarchicalElement, HasGradleProject

Represents information about the IDEA module.

Since
1.0-milestone-5

Functions

getCompilerOutput

abstract fun getCompilerOutput(): IdeaCompilerOutput

Returns information about idea compiler output (output dirs, inheritance of output dir, etc.)

getContentRoots

abstract fun getContentRoots(): DomainObjectSet<out IdeaContentRoot>

All content roots. Most idea modules have a single content root.

getDependencies

abstract fun getDependencies(): DomainObjectSet<out IdeaDependency>

dependencies of this module (i.e. module dependencies, library dependencies, etc.)

getGradleProject

abstract fun getGradleProject(): GradleProject

The gradle project that is associated with this module. Typically, a single module corresponds to a single gradle project.

See HasGradleProject

getJavaLanguageSettings

abstract fun getJavaLanguageSettings(): IdeaJavaLanguageSettings

Returns the Java language settings for this element, or null if this element is not a Java element.

getJdkName

abstract fun getJdkName(): String

Returns the name of the JDK.

getParent

abstract fun getParent(): IdeaProject

Returns the project of this module. Alias to #getProject()

getProject

abstract fun getProject(): IdeaProject

Returns the project of this module. Alias to #getParent()

Inherited Functions

getChildren

abstract fun getChildren(): DomainObjectSet<out HierarchicalElement>

Returns the child elements, or the empty set if there are no child elements.

getProjectIdentifier

abstract fun getProjectIdentifier(): ProjectIdentifier

Returns the identifier for the project that this model is associated with.