kmongo / org.litote.kmongo.property / KPropertyPath

KPropertyPath

open class KPropertyPath<T, R> : KProperty1<T, R> (source)

A property path, operations on which take one receiver as a parameter.

Parameters

T - the type of the receiver which should be used to obtain the value of the property.

R - the type of the property.

Constructors

<init>

A property path, operations on which take one receiver as a parameter.

KPropertyPath(previous: KPropertyPath<T, *>?, property: KProperty1<*, R?>)

Properties

annotations

open val annotations: List<Annotation>

getter

open val getter: Getter<T, R>

isAbstract

open val isAbstract: Boolean

isConst

open val isConst: Boolean

isFinal

open val isFinal: Boolean

isLateinit

open val isLateinit: Boolean

isOpen

open val isOpen: Boolean

isSuspend

open val isSuspend: Boolean

name

open val name: String

parameters

open val parameters: List<KParameter>

returnType

open val returnType: KType

typeParameters

open val typeParameters: List<KTypeParameter>

visibility

open val visibility: KVisibility?

Functions

call

open fun call(vararg args: Any?): R

callBy

open fun callBy(args: Map<KParameter, Any?>): R

get

open fun get(receiver: T): R

getDelegate

open fun getDelegate(receiver: T): Any?

invoke

open fun invoke(p1: T): R

Companion Object Functions

customProperty

Provides "fake" property with custom name.

fun <T, R> customProperty(previous: KPropertyPath<*, T>, path: String): KProperty1<T, R?>

Inheritors

KCollectionPropertyPath

Base class for collection property path.

open class KCollectionPropertyPath<T, R, MEMBER : KPropertyPath<T, R?>> : KPropertyPath<T, Iterable<R>?>

KMapPropertyPath

Base class for map property path.

open class KMapPropertyPath<T, K, R, MEMBER : KPropertyPath<T, R?>> : KPropertyPath<T, Map<out K?, R>?>