PropertyAccessor

The result of inspekting a property accessor.

Inheritors

Properties

Link copied to clipboard

All annotations on this element with their source information.

Link copied to clipboard
override val annotations: List<Annotation>

All annotations on this element, including inherited ones.

Link copied to clipboard

Annotations declared directly on this element.

Link copied to clipboard

If the declaration is inherited from a superclass (not overridden), the superclass it is inherited from.

Link copied to clipboard

Whether the declaration is abstract. If checking whether you can invoke a function, use FunctionLike.isInvokable instead of this.

Link copied to clipboard

Whether the declaration is declared in its owning class. False if it is inherited.

Link copied to clipboard

Whether the method can be invoked. Almost always equal to !isAbstract, but may be false if conditions (such as reified type parameters) prevent generating an invoker lambda.

Link copied to clipboard

Whether the referenced function is suspending. If true, calling invoke will error - use invokeSuspend instead.

Link copied to clipboard

Whether the declaration is top-level (not a member of a class).

Link copied to clipboard
abstract override val kotlin: KFunction<*>

A reference to the Kotlin declaration this represents.

Link copied to clipboard
abstract override val name: CallableName

The fully qualified name of the declaration.

Link copied to clipboard

The parameters of the declaration.

Link copied to clipboard
abstract val property: Property

The property this accessor belongs to.

Link copied to clipboard

The return type of the function.

Link copied to clipboard

The short name of the declaration.

Functions

Link copied to clipboard
inline fun <T> AnnotatedElement.annotation(): T?

Get the first annotation of type T, or null if none is found.

Link copied to clipboard

Get all annotations of type T.

Link copied to clipboard

Builds an ArgumentList for a set of parameters. Parameters which are not set will use their default values if they have one. Successfully building an ArgumentList guarantees that values are provided for all parameters without default values.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
operator fun invoke(arguments: ArgumentList): Any?
inline operator fun invoke(arguments: ArgumentsBuilder): Any?

Invoke the referenced function with the given parameters. Will error if the underlying function is suspend.

Link copied to clipboard
suspend fun invokeSuspend(arguments: ArgumentList): Any?
inline suspend fun invokeSuspend(arguments: ArgumentsBuilder): Any?

Invoke the referenced suspend function with the given parameters. If the function is not suspend, this will still invoke it without an error.

Link copied to clipboard
override fun toString(): String
abstract fun toString(includeFullName: Boolean): String