public class ConfigurationSpec extends java.lang.Object implements PrettyPrintable
| Constructor and Description |
|---|
ConfigurationSpec(java.lang.String pName)
Create a new
ConfigurationSpec. |
| Modifier and Type | Method and Description |
|---|---|
void |
addExtendedConfiguration(java.lang.String pConfigurationName)
Add the name of a configuration that is extended by this configuration.
|
void |
forEachExtendedConfiguration(java.util.function.Consumer<? super java.lang.String> pAction)
Perform an action for the name of each configuration extended by this configuration.
|
java.lang.String |
getDescription() |
java.lang.String |
getName() |
int |
getNumExtendedConfigurations()
Get the number of configurations that are extended by this configuration.
|
boolean |
isTransitive() |
boolean |
isVisible() |
void |
prettyPrint(GradlePrettyPrinter pPrinter)
Pretty print this instance with a
GradlePrettyPrinter on a format suitable for build
scripts. |
static void |
prettyPrintConfigurations(GradlePrettyPrinter pPrinter,
java.util.Collection<? extends ConfigurationSpec> pConfigurations)
Pretty print a collection of configuration specifications on Gradle repository closure format.
|
void |
setDescription(java.lang.String pDescription) |
void |
setTransitive(boolean pTransitive) |
void |
setVisible(boolean pVisible) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitquotepublic ConfigurationSpec(java.lang.String pName)
ConfigurationSpec.pName - The name of the configuration.java.lang.NullPointerException - if pName is null.public java.lang.String getName()
public boolean isTransitive()
public void setTransitive(boolean pTransitive)
public boolean isVisible()
public void setVisible(boolean pVisible)
public java.lang.String getDescription()
public void setDescription(java.lang.String pDescription)
public int getNumExtendedConfigurations()
public void forEachExtendedConfiguration(java.util.function.Consumer<? super java.lang.String> pAction)
pAction - The action to apply to the names of the extended configurations.java.lang.NullPointerException - if pAction is null.public void addExtendedConfiguration(java.lang.String pConfigurationName)
pConfigurationName - The name of the configuration that is extended by this
configuration.java.lang.NullPointerException - if pConfigurationName is null.public void prettyPrint(GradlePrettyPrinter pPrinter)
PrettyPrintableGradlePrettyPrinter on a format suitable for build
scripts.prettyPrint in interface PrettyPrintablepPrinter - The printer to print with.public static void prettyPrintConfigurations(GradlePrettyPrinter pPrinter, java.util.Collection<? extends ConfigurationSpec> pConfigurations)
pPrinter - The printer to print with.pConfigurations - The configurations to print.java.lang.NullPointerException - if any of the parameters is null.