doc / ch.tutteli.atrium.api.fluent.en_GB.creating.feature / MetaFeatureOption

MetaFeatureOption

class MetaFeatureOption<T> (source)

Constructors

<init>

MetaFeatureOption(expect: Expect<T>)

Functions

f

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

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

fun <R> f(f: KFunction0<R>): MetaFeature<R>

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

fun <A1, R> f(f: KFunction1<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: KFunction2<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: KFunction3<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: KFunction4<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: KFunction5<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.

f0

fun <R> f0(f: KFunction0<R>): MetaFeature<R>

Creates a MetaFeature for the given function f without arguments.

f1

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

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

f2

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

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

f3

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

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

f4

fun <A1, A2, A3, A4, R> f4(f: KFunction4<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.

f5

fun <A1, A2, A3, A4, A5, R> f5(f: KFunction5<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.

p

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

Creates a MetaFeature for the given property property.