api / org.gradle.plugins.ide.idea.model / ModuleLibrary

ModuleLibrary

open class ModuleLibrary : Dependency

Represents an orderEntry of type module-library in the iml XML.

Constructors

<init>

ModuleLibrary(classes: MutableCollection<out Path>, javadoc: MutableCollection<out Path>, sources: MutableCollection<out Path>, jarDirectories: MutableCollection<JarDirectory>, scope: String)

Functions

addToNode

open fun addToNode(parentNode: Node): Unit

equals

open fun equals(other: Any?): Boolean

getClasses

open fun getClasses(): MutableSet<Path>

A set of Jar files or directories containing compiled code.

getJarDirectories

open fun getJarDirectories(): MutableSet<JarDirectory>

A set of directories containing Jar files.

getJavadoc

open fun getJavadoc(): MutableSet<Path>

A set of Jar files or directories containing Javadoc.

getScope

open fun getScope(): String

The scope of this library. If null, the scope attribute is not added.

getSources

open fun getSources(): MutableSet<Path>

A set of Jar files or directories containing source code.

hashCode

open fun hashCode(): Int

isExported

open fun isExported(): Boolean

Whether the library is exported to dependent modules.

setClasses

open fun setClasses(classes: MutableSet<Path>): Unit

setExported

open fun setExported(exported: Boolean): Unit

setJarDirectories

open fun setJarDirectories(jarDirectories: MutableSet<JarDirectory>): Unit

setJavadoc

open fun setJavadoc(javadoc: MutableSet<Path>): Unit

setScope

open fun setScope(scope: String): Unit

setSources

open fun setSources(sources: MutableSet<Path>): Unit

toString

open fun toString(): String

Inheritors

SingleEntryModuleLibrary

open class SingleEntryModuleLibrary : ModuleLibrary

Single entry module library