# MemberScope

class MemberScope < T : Any >

The KavaRef scope for member reflection.

T to specify the declaring class type of the member.

#### Parameters

configuration

the configuration to be reflected.

## Functions

asResolver
Link copied to clipboard
fun KavaRef.MemberScope <*>. asResolver (): KavaRef.MemberScope <*>

This is a fake function call chains to avoid internal calls to themselves.

constructor
Link copied to clipboard
fun constructor (): ConstructorCondition < T >
fun constructor (condition: ConstructorCondition < T >): List < ConstructorResolver < T >>
inline fun constructor (condition: ConstructorCondition < T >.() -> Unit ): List < ConstructorResolver < T >>

Start a new constructor reflection.

field
Link copied to clipboard
fun field (): FieldCondition < T >
fun field (condition: FieldCondition < T >): List < FieldResolver < T >>
inline fun field (condition: FieldCondition < T >.() -> Unit ): List < FieldResolver < T >>

Start a new field reflection.

firstConstructor
Link copied to clipboard
fun firstConstructor (condition: ConstructorCondition < T >): ConstructorResolver < T >
inline fun firstConstructor (condition: ConstructorCondition < T >.() -> Unit = {}): ConstructorResolver < T >

Start a new constructor reflection and return the first matching constructor.

firstConstructorOrNull
Link copied to clipboard
fun firstConstructorOrNull (condition: ConstructorCondition < T >): ConstructorResolver < T >?
inline fun firstConstructorOrNull (condition: ConstructorCondition < T >.() -> Unit = {}): ConstructorResolver < T >?

Start a new constructor reflection and return the first matching constructor or null.

firstField
Link copied to clipboard
fun firstField (condition: FieldCondition < T >): FieldResolver < T >
inline fun firstField (condition: FieldCondition < T >.() -> Unit = {}): FieldResolver < T >

Start a new field reflection and return the first matching field.

firstFieldOrNull
Link copied to clipboard
fun firstFieldOrNull (condition: FieldCondition < T >): FieldResolver < T >?
inline fun firstFieldOrNull (condition: FieldCondition < T >.() -> Unit = {}): FieldResolver < T >?

Start a new field reflection and return the first matching field or null.

firstMethod
Link copied to clipboard
fun firstMethod (condition: MethodCondition < T >): MethodResolver < T >
inline fun firstMethod (condition: MethodCondition < T >.() -> Unit = {}): MethodResolver < T >

Start a new method reflection and return the first matching method.

firstMethodOrNull
Link copied to clipboard
fun firstMethodOrNull (condition: MethodCondition < T >): MethodResolver < T >?
inline fun firstMethodOrNull (condition: MethodCondition < T >.() -> Unit = {}): MethodResolver < T >?

Start a new method reflection and return the first matching method or null.

lastConstructor
Link copied to clipboard
fun lastConstructor (condition: ConstructorCondition < T >): ConstructorResolver < T >
inline fun lastConstructor (condition: ConstructorCondition < T >.() -> Unit = {}): ConstructorResolver < T >

Start a new constructor reflection and return the last matching constructor.

lastConstructorOrNull
Link copied to clipboard
fun lastConstructorOrNull (condition: ConstructorCondition < T >): ConstructorResolver < T >?
inline fun lastConstructorOrNull (condition: ConstructorCondition < T >.() -> Unit = {}): ConstructorResolver < T >?

Start a new constructor reflection and return the last matching constructor or null.

lastField
Link copied to clipboard
fun lastField (condition: FieldCondition < T >): FieldResolver < T >
inline fun lastField (condition: FieldCondition < T >.() -> Unit = {}): FieldResolver < T >

Start a new field reflection and return the last matching field.

lastFieldOrNull
Link copied to clipboard
fun lastFieldOrNull (condition: FieldCondition < T >): FieldResolver < T >?
inline fun lastFieldOrNull (condition: FieldCondition < T >.() -> Unit = {}): FieldResolver < T >?

Start a new field reflection and return the last matching field or null.

lastMethod
Link copied to clipboard
fun lastMethod (condition: MethodCondition < T >): MethodResolver < T >
inline fun lastMethod (condition: MethodCondition < T >.() -> Unit = {}): MethodResolver < T >

Start a new method reflection and return the last matching method.

lastMethodOrNull
Link copied to clipboard
fun lastMethodOrNull (condition: MethodCondition < T >): MethodResolver < T >?
inline fun lastMethodOrNull (condition: MethodCondition < T >.() -> Unit = {}): MethodResolver < T >?

Start a new method reflection and return the last matching method or null.

method
Link copied to clipboard
fun method (): MethodCondition < T >
fun method (condition: MethodCondition < T >): List < MethodResolver < T >>
inline fun method (condition: MethodCondition < T >.() -> Unit ): List < MethodResolver < T >>

Start a new method reflection.

optional
Link copied to clipboard
fun optional (silent: Boolean = false): KavaRef.MemberScope < T >

Enable optional mode.

processor
Link copied to clipboard
fun processor (resolver: MemberProcessor.Resolver ): KavaRef.MemberScope < T >

Set the MemberProcessor.Resolver to be used for this reflection.