@Incubating public abstract class BaseComponentSpec extends Object implements org.gradle.platform.base.internal.ComponentSpecInternal
ComponentSpec must extend this type.Named.Namer| Modifier | Constructor and Description |
|---|---|
protected |
BaseComponentSpec() |
| Modifier and Type | Method and Description |
|---|---|
void |
binaries(Action<? super ModelMap<BinarySpec>> action)
Configures the binaries that are produced for this component.
|
static <T extends BaseComponentSpec> |
create(Class<T> type,
ComponentSpecIdentifier identifier,
org.gradle.model.internal.core.MutableModelNode modelNode,
org.gradle.internal.reflect.Instantiator instantiator,
org.gradle.language.base.internal.registry.LanguageRegistry languageRegistry,
File baseDir) |
ModelMap<BinarySpec> |
getBinaries()
The binaries that are built for this component.
|
String |
getDisplayName()
Returns a human-consumable display name for this component.
|
FunctionalSourceSet |
getFunctionalSourceSet() |
Set<? extends Class<? extends TransformationFileType>> |
getInputTypes() |
String |
getName()
The object's name.
|
String |
getProjectPath()
The path the the project containing this component.
|
ModelMap<LanguageSourceSet> |
getSource()
The source sets that are used to build this component.
|
ModelMap<LanguageSourceSet> |
getSources()
The source sets that are used to build this component.
|
protected String |
getTypeName() |
void |
sources(Action<? super ModelMap<LanguageSourceSet>> action)
Configures the source sets used to build this component.
|
String |
toString() |
public static <T extends BaseComponentSpec> T create(Class<T> type, ComponentSpecIdentifier identifier, org.gradle.model.internal.core.MutableModelNode modelNode, org.gradle.internal.reflect.Instantiator instantiator, org.gradle.language.base.internal.registry.LanguageRegistry languageRegistry, File baseDir)
public String getName()
NamedMust be constant for the life of the object.
public String getProjectPath()
ComponentSpecgetProjectPath in interface ComponentSpecprotected String getTypeName()
public String getDisplayName()
ComponentSpecgetDisplayName in interface ComponentSpecpublic ModelMap<LanguageSourceSet> getSource()
ComponentSpecgetSource in interface ComponentSpecpublic ModelMap<LanguageSourceSet> getSources()
ComponentSpecgetSources in interface ComponentSpecpublic void sources(Action<? super ModelMap<LanguageSourceSet>> action)
ComponentSpecsources in interface ComponentSpecpublic ModelMap<BinarySpec> getBinaries()
ComponentSpecgetBinaries in interface ComponentSpecpublic void binaries(Action<? super ModelMap<BinarySpec>> action)
ComponentSpecbinaries in interface ComponentSpecpublic FunctionalSourceSet getFunctionalSourceSet()
getFunctionalSourceSet in interface org.gradle.platform.base.internal.ComponentSpecInternalpublic Set<? extends Class<? extends TransformationFileType>> getInputTypes()
getInputTypes in interface org.gradle.platform.base.internal.ComponentSpecInternal