@Incubating interface FunctionalSourceSet : ModelMap<LanguageSourceSet>
A container holding LanguageSourceSets with a similar function (production code, test code, etc.).
abstract fun afterEach(configAction: Action<in T>): Unit
Applies the given action to each item in the collection, as each item is required. The given action is invoked to configure the item when the item is required. It is called after any actions provided to abstract fun <S : Any> afterEach(type: Class<S>, configAction: Action<in S>): Unit
Applies the given action to each item of the given type in the collection, as each item is required. The given action is invoked to configure the item when the item is required. It is called after any actions provided to |
|
abstract fun all(configAction: Action<in T>): Unit
Applies the given action to each item in the collection, as each item is required. The given action is invoked to configure the item when the item is required. It is called after any actions provided to |
|
abstract fun beforeEach(configAction: Action<in T>): Unit
Applies the given action to each item in this collection, as each item is required. The given action is invoked to configure the item when the item is required. It is called before any actions provided to abstract fun <S : Any> beforeEach(type: Class<S>, configAction: Action<in S>): Unit
Applies the given action to each item of the given type in this collection, as each item is required. The given action is invoked to configure the item when the item is required. It is called before any actions provided to |
|
abstract fun containsKey(name: Any): Boolean
Returns true if this collection contains an item with the given name. |
|
abstract fun containsValue(item: Any): Boolean
Returns true if this collection contains the given item. |
|
abstract fun create(name: String): Unit
Defines an item with the given name and type T. The item is not created immediately, but is instead created as it is required. abstract fun create(name: String, configAction: Action<in T>): Unit
Defines an item with the given name and type T. The item is not created immediately, but is instead created as it is required. The given action is invoked to configure the item when the item is required. abstract fun <S : T> create(name: String, type: Class<S>): Unit
Defines an item with the given name and type. The item is not created immediately, but is instead created as it is required. abstract fun <S : T> create(name: String, type: Class<S>, configAction: Action<in S>): Unit
Defines an item with the given name and type. The item is not created immediately, but is instead created as it is required. The given action is invoked to configure the item when the item is required. |
|
abstract fun get(name: Any): T abstract fun get(name: String): T
Returns the item with the given name, if any. |
|
abstract fun isEmpty(): Boolean
Returns true if this collection contains no items. |
|
abstract fun keySet(): MutableSet<String>
Returns the names of the items in this collection. |
|
abstract fun named(name: String, configAction: Action<in T>): Unit
Applies the given action to the given item, when the item is required. The given action is invoked to configure the item when the item is required. It is called after any actions provided to abstract fun named(name: String, ruleSource: Class<out RuleSource>): Unit
Applies the given rule source class to the given item, when the item is required. Rules are applied in the scope of the item therefore:
|
|
abstract fun put(name: String, instance: T): Unit
Adds an element to this |
|
abstract fun size(): Int
Returns the number of items in this collection. |
|
abstract fun values(): MutableCollection<T>
Returns the items in this collection. |
|
abstract fun <S : Any> withType(type: Class<S>): ModelMap<S>
Returns a collection containing the items from this collection which are of the specified type. abstract fun <S : Any> withType(type: Class<S>, configAction: Action<in S>): Unit
Applies the given action to each item of the given type in the collection, as each item is required. The given action is invoked to configure the item when the item is required. It is called after any actions provided to abstract fun <S : Any> withType(type: Class<S>, rules: Class<out RuleSource>): Unit
Applies the given rules to all items of the collection of the given type. |