# FunctionalSourceSet

@Incubating
interface FunctionalSourceSet : ModelMap<T> (source)

A container holding LanguageSourceSets with a similar function (production code, test code, etc.).

## Functions

afterEach
Link copied to clipboard
abstract fun afterEach(configAction: Action<in T>)
afterEach
Link copied to clipboard
@Incubating
inline fun <S : Any, T : Any> ModelMap<T>.afterEach(type: KClass<S>, configAction: Action<in S>)

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.model.ModelMap.afterEach.

all
Link copied to clipboard
abstract fun all(configAction: Action<in T>)
beforeEach
Link copied to clipboard
abstract fun beforeEach(configAction: Action<in T>)
beforeEach
Link copied to clipboard
@Incubating
inline fun <S : Any, T : Any> ModelMap<T>.beforeEach(type: KClass<S>, configAction: Action<in S>)

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.model.ModelMap.beforeEach.

containsKey
Link copied to clipboard
abstract fun containsKey(name: Any): Boolean
containsValue
Link copied to clipboard
abstract fun containsValue(item: Any): Boolean
create
Link copied to clipboard
abstract fun create(name: String)
create
Link copied to clipboard
@Incubating
inline fun <S : T, T : Any> ModelMap<T>.create(name: String, type: KClass<S>)
@Incubating
inline fun <S : T, T : Any> ModelMap<T>.create(name: String, type: KClass<S>, configAction: Action<in S>)

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.model.ModelMap.create.

forEach
Link copied to clipboard
open fun forEach(action: Consumer<in T>)
get
Link copied to clipboard
abstract fun get(name: Any): T
getDisplayName
Link copied to clipboard
abstract fun getDisplayName(): String
getName
Link copied to clipboard
abstract fun getName(): String
isEmpty
Link copied to clipboard
abstract fun isEmpty(): Boolean
iterator
Link copied to clipboard
abstract fun iterator(): Iterator<T>
keySet
Link copied to clipboard
abstract fun keySet(): Set<String>
named
Link copied to clipboard
abstract fun named(name: String, configAction: Action<in T>)
named
Link copied to clipboard
@Incubating
inline fun <T : Any> ModelMap<T>.named(name: String, ruleSource: KClass<out RuleSource>)

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.model.ModelMap.named.

put
Link copied to clipboard
abstract fun put(name: String, instance: T)
size
Link copied to clipboard
abstract fun size(): Int
spliterator
Link copied to clipboard
open fun spliterator(): Spliterator<T>
values
Link copied to clipboard
abstract fun values(): Collection<T>
withType
Link copied to clipboard
abstract fun <S> withType(type: Class<S>): ModelMap<S>
abstract fun <S> withType(type: Class<S>, configAction: Action<in S>)
withType
Link copied to clipboard
@Incubating
inline fun <S : Any, T : Any> ModelMap<T>.withType(type: KClass<S>): ModelMap<S>
@Incubating
inline fun <S : Any, T : Any> ModelMap<T>.withType(type: KClass<S>, rules: KClass<out RuleSource>)
@Incubating
inline fun <S : Any, T : Any> ModelMap<T>.withType(type: KClass<S>, configAction: Action<in S>)

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.model.ModelMap.withType.