@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,
FunctionalSourceSet mainSourceSet,
org.gradle.internal.reflect.Instantiator instantiator,
org.gradle.model.internal.manage.schema.ModelSchemaStore schemaStore) |
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, FunctionalSourceSet mainSourceSet, org.gradle.internal.reflect.Instantiator instantiator, org.gradle.model.internal.manage.schema.ModelSchemaStore schemaStore)
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 void sources(Action<? super ModelMap<LanguageSourceSet>> action)
ComponentSpec
sources
in interface ComponentSpec
public ModelMap<BinarySpec> getBinaries()
ComponentSpec
getBinaries
in interface ComponentSpec
public void binaries(Action<? super ModelMap<BinarySpec>> action)
ComponentSpec
binaries
in interface ComponentSpec
public FunctionalSourceSet getFunctionalSourceSet()
getFunctionalSourceSet
in interface org.gradle.platform.base.internal.ComponentSpecInternal
public Set<? extends Class<? extends TransformationFileType>> getInputTypes()
getInputTypes
in interface org.gradle.platform.base.internal.ComponentSpecInternal