Class ModuleLibrary
- java.lang.Object
-
- org.gradle.plugins.ide.idea.model.ModuleLibrary
-
- All Implemented Interfaces:
Dependency
- Direct Known Subclasses:
SingleEntryModuleLibrary
public class ModuleLibrary extends java.lang.Object implements Dependency
Represents an orderEntry of type module-library in the iml XML.
-
-
Constructor Summary
Constructors Constructor Description ModuleLibrary(java.util.Collection<? extends Path> classes, java.util.Collection<? extends Path> javadoc, java.util.Collection<? extends Path> sources, java.util.Collection<JarDirectory> jarDirectories, java.lang.String scope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToNode(Node parentNode)booleanequals(java.lang.Object o)java.util.Set<Path>getClasses()A set of Jar files or directories containing compiled code.java.util.Set<JarDirectory>getJarDirectories()A set of directories containing Jar files.java.util.Set<Path>getJavadoc()A set of Jar files or directories containing Javadoc.java.lang.StringgetScope()The scope of this library.java.util.Set<Path>getSources()A set of Jar files or directories containing source code.inthashCode()booleanisExported()Whether the library is exported to dependent modules.voidsetClasses(java.util.Set<Path> classes)voidsetExported(boolean exported)voidsetJarDirectories(java.util.Set<JarDirectory> jarDirectories)voidsetJavadoc(java.util.Set<Path> javadoc)voidsetScope(java.lang.String scope)The scope of this library.voidsetSources(java.util.Set<Path> sources)java.lang.StringtoString()
-
-
-
Constructor Detail
-
ModuleLibrary
public ModuleLibrary(java.util.Collection<? extends Path> classes, java.util.Collection<? extends Path> javadoc, java.util.Collection<? extends Path> sources, java.util.Collection<JarDirectory> jarDirectories, java.lang.String scope)
-
-
Method Detail
-
getClasses
public java.util.Set<Path> getClasses()
A set of Jar files or directories containing compiled code.
-
setClasses
public void setClasses(java.util.Set<Path> classes)
-
getJarDirectories
public java.util.Set<JarDirectory> getJarDirectories()
A set of directories containing Jar files.
-
setJarDirectories
public void setJarDirectories(java.util.Set<JarDirectory> jarDirectories)
-
getJavadoc
public java.util.Set<Path> getJavadoc()
A set of Jar files or directories containing Javadoc.
-
setJavadoc
public void setJavadoc(java.util.Set<Path> javadoc)
-
getSources
public java.util.Set<Path> getSources()
A set of Jar files or directories containing source code.
-
setSources
public void setSources(java.util.Set<Path> sources)
-
getScope
public java.lang.String getScope()
The scope of this library. Ifnull, the scope attribute is not added.- Specified by:
getScopein interfaceDependency
-
setScope
public void setScope(java.lang.String scope)
Description copied from interface:DependencyThe scope of this library. Ifnull, the scope attribute is not added.- Specified by:
setScopein interfaceDependency
-
isExported
public boolean isExported()
Whether the library is exported to dependent modules.
-
setExported
public void setExported(boolean exported)
-
addToNode
public void addToNode(Node parentNode)
- Specified by:
addToNodein interfaceDependency
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-