MetaFeatureOption

class MetaFeatureOption<T>(expect: Expect<T>)(source)

Represents the default options available for a user if he uses feature with the MetaFeatureOption-lambda overload.

Constructors

Link copied to clipboard
constructor(expect: Expect<T>)

Functions

Link copied to clipboard
fun <R> f(f: () -> R): MetaFeature<R>

Creates a MetaFeature for the given function f without arguments => use f0 in case of ambiguity issues.

fun <R> f(property: KProperty0<R>): MetaFeature<R>

Creates a MetaFeature for the given property => use p in case of ambiguity issues.

fun <A1, R> f(f: (A1) -> R, a1: A1): MetaFeature<R>

Creates a MetaFeature for the given function f which expects 1 argument => use f1 in case of ambiguity issues.

fun <A1, A2, R> f(f: (A1, A2) -> R, a1: A1, a2: A2): MetaFeature<R>

Creates a MetaFeature for the given function f which expects 2 arguments => use f2 in case of ambiguity issues.

fun <A1, A2, A3, R> f(f: (A1, A2, A3) -> R, a1: A1, a2: A2, a3: A3): MetaFeature<R>

Creates a MetaFeature for the given function f which expects 3 arguments => use f3 in case of ambiguity issues.

fun <A1, A2, A3, A4, R> f(f: (A1, A2, A3, A4) -> R, a1: A1, a2: A2, a3: A3, a4: A4): MetaFeature<R>

Creates a MetaFeature for the given function f which expects 4 arguments => use f4 in case of ambiguity issues.

fun <A1, A2, A3, A4, A5, R> f(f: (A1, A2, A3, A4, A5) -> R, a1: A1, a2: A2, a3: A3, a4: A4, a5: A5): MetaFeature<R>

Creates a MetaFeature for the given function f which expects 5 arguments => use f5 in case of ambiguity issues.

Link copied to clipboard
fun <T, R> MetaFeatureOption<T>.f(description: String, provider: R): MetaFeature<R>

Creates a MetaFeature using the given provider and description.

Link copied to clipboard
fun <R> f0(f: () -> R): MetaFeature<R>

Creates a MetaFeature for the given function f without arguments.

Link copied to clipboard
fun <A1, R> f1(f: (A1) -> R, a1: A1): MetaFeature<R>

Creates a MetaFeature for the given function f which expects 1 argument.

Link copied to clipboard
fun <A1, A2, R> f2(f: (A1, A2) -> R, a1: A1, a2: A2): MetaFeature<R>

Creates a MetaFeature for the given function f which expects 2 arguments.

Link copied to clipboard
fun <A1, A2, A3, R> f3(f: (A1, A2, A3) -> R, a1: A1, a2: A2, a3: A3): MetaFeature<R>

Creates a MetaFeature for the given function f which expects 3 arguments.

Link copied to clipboard
fun <A1, A2, A3, A4, R> f4(f: (A1, A2, A3, A4) -> R, a1: A1, a2: A2, a3: A3, a4: A4): MetaFeature<R>

Creates a MetaFeature for the given function f which expects 4 arguments.

Link copied to clipboard
fun <A1, A2, A3, A4, A5, R> f5(f: (A1, A2, A3, A4, A5) -> R, a1: A1, a2: A2, a3: A3, a4: A4, a5: A5): MetaFeature<R>

Creates a MetaFeature for the given function f which expects 5 arguments.

Link copied to clipboard
fun <R> p(property: KProperty0<R>): MetaFeature<R>

Creates a MetaFeature for the given property property.