@Incubating public class BaseLanguageSourceSet extends org.gradle.api.internal.AbstractBuildableModelElement implements org.gradle.language.base.internal.LanguageSourceSetInternal
LanguageSourceSet
must extend this type.Named.Namer
Modifier and Type | Field and Description |
---|---|
protected org.gradle.api.internal.file.FileResolver |
fileResolver |
Constructor and Description |
---|
BaseLanguageSourceSet() |
Modifier and Type | Method and Description |
---|---|
void |
builtBy(Object... tasks)
Adds a task that is required for the construction of this element.
|
static <T extends LanguageSourceSet> |
create(Class<? extends LanguageSourceSet> publicType,
Class<T> type,
String name,
String parentName,
org.gradle.api.internal.file.FileResolver fileResolver) |
void |
generatedBy(Task generatorTask) |
String |
getDisplayName() |
Task |
getGeneratorTask() |
boolean |
getMayHaveSources() |
String |
getName()
The object's name.
|
String |
getParentName() |
String |
getProjectScopedName() |
SourceDirectorySet |
getSource()
The source files.
|
protected String |
getTypeName() |
String |
toString() |
getBuildDependencies, getBuildTask, hasBuildDependencies, setBuildTask
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBuildTask, hasBuildDependencies, setBuildTask
getBuildDependencies
public String getName()
Named
Must be constant for the life of the object.
public String getParentName()
getParentName
in interface LanguageSourceSet
public String getProjectScopedName()
getProjectScopedName
in interface org.gradle.language.base.internal.LanguageSourceSetInternal
public String getDisplayName()
getDisplayName
in interface LanguageSourceSet
protected String getTypeName()
public void builtBy(Object... tasks)
BuildableModelElement
builtBy
in interface BuildableModelElement
builtBy
in class org.gradle.api.internal.AbstractBuildableModelElement
public void generatedBy(Task generatorTask)
generatedBy
in interface LanguageSourceSet
public Task getGeneratorTask()
getGeneratorTask
in interface org.gradle.language.base.internal.LanguageSourceSetInternal
public boolean getMayHaveSources()
getMayHaveSources
in interface org.gradle.language.base.internal.LanguageSourceSetInternal
public SourceDirectorySet getSource()
LanguageSourceSet
getSource
in interface LanguageSourceSet
public static <T extends LanguageSourceSet> T create(Class<? extends LanguageSourceSet> publicType, Class<T> type, String name, String parentName, org.gradle.api.internal.file.FileResolver fileResolver)