@Incubating public class BaseComponentSpec extends Object implements org.gradle.platform.base.internal.ComponentSpecInternal
ComponentSpec
must extend this type.Named.Namer
Constructor and Description |
---|
BaseComponentSpec() |
Modifier and Type | Method and Description |
---|---|
static <T extends BaseComponentSpec> |
create(Class<? extends ComponentSpec> publicType,
Class<T> implementationType,
ComponentSpecIdentifier identifier,
org.gradle.model.internal.core.MutableModelNode modelNode) |
ModelMap<BinarySpec> |
getBinaries()
The binaries that are built for this component.
|
String |
getDisplayName()
Returns a human-consumable display name for this component.
|
Set<? extends Class<? extends TransformationFileType>> |
getInputTypes() |
String |
getName()
The object's name.
|
String |
getProjectPath()
The path to 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() |
String |
toString() |
public static <T extends BaseComponentSpec> T create(Class<? extends ComponentSpec> publicType, Class<T> implementationType, ComponentSpecIdentifier identifier, org.gradle.model.internal.core.MutableModelNode modelNode)
public String getName()
Named
Must be constant for the life of the object.
public String getProjectPath()
ComponentSpec
getProjectPath
in interface ComponentSpec
protected String getTypeName()
public String getDisplayName()
ComponentSpec
getDisplayName
in interface ComponentSpec
public ModelMap<LanguageSourceSet> getSource()
ComponentSpec
getSource
in interface ComponentSpec
public ModelMap<LanguageSourceSet> getSources()
ComponentSpec
getSources
in interface ComponentSpec
public ModelMap<BinarySpec> getBinaries()
ComponentSpec
getBinaries
in interface ComponentSpec
public Set<? extends Class<? extends TransformationFileType>> getInputTypes()
getInputTypes
in interface org.gradle.platform.base.internal.ComponentSpecInternal