@Incubating public abstract class BaseComponentSpec extends Object implements ComponentSpec
ComponentSpec must extend this type.Named.Namer| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
BaseComponentSpec() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static <T extends BaseComponentSpec> |
create(Class<T> type,
ComponentSpecIdentifier identifier,
FunctionalSourceSet mainSourceSet,
org.gradle.internal.reflect.Instantiator instantiator) |
DomainObjectSet<? extends BinarySpec> |
getBinaries()
The binaries that are built for this component.
|
String |
getDisplayName()
Returns a human-consumable display name for this component.
|
FunctionalSourceSet |
getMainSource() |
String |
getName()
The object's name.
|
String |
getProjectPath()
The path the the project containing this component.
|
DomainObjectSet<LanguageSourceSet> |
getSource()
The source sets that are used to build this component.
|
void |
source(Object sources)
Adds one or more
LanguageSourceSets that are used to compile this binary. |
String |
toString() |
public static <T extends BaseComponentSpec> T create(Class<T> type, ComponentSpecIdentifier identifier, FunctionalSourceSet mainSourceSet, org.gradle.internal.reflect.Instantiator instantiator)
public String getName()
NamedMust be constant for the life of the object.
public String getProjectPath()
ComponentSpecgetProjectPath インタフェース内 ComponentSpecpublic String getDisplayName()
ComponentSpecgetDisplayName インタフェース内 ComponentSpecpublic DomainObjectSet<LanguageSourceSet> getSource()
ComponentSpecgetSource インタフェース内 ComponentSpecpublic void source(Object sources)
ComponentSpecLanguageSourceSets that are used to compile this binary.
This method accepts the following types:
FunctionalSourceSetLanguageSourceSetLanguageSourceSetssource インタフェース内 ComponentSpecpublic DomainObjectSet<? extends BinarySpec> getBinaries()
ComponentSpecgetBinaries インタフェース内 ComponentSpecpublic FunctionalSourceSet getMainSource()