PrepareKeyMetadataVisitor

Visitor class for extracting PrepareKey metadata during class reflection. This visitor analyzes the PrepareKey interface to determine the name (from annotation or class name), the interface type, and the generic value type parameter.

Parameters

P

the PrepareKey interface type

Constructors

Link copied to clipboard
constructor(prepareKeyType: KClass<P>)

Functions

Link copied to clipboard
open fun end()
Link copied to clipboard
open fun start()
Link copied to clipboard
open override fun toMetadata(): PrepareKeyMetadata<P>

Extracts and constructs the PrepareKey metadata from the visited class. Determines the name from @PreparableKey annotation or uses the simple class name. Extracts the value type from the PrepareKey generic parameter.

Link copied to clipboard
open fun visitConstructor(constructor: KFunction<*>)
Link copied to clipboard
open fun visitFunction(function: KFunction<*>)
Link copied to clipboard
open fun visitProperty(property: KProperty1<P, *>)
Link copied to clipboard
open fun visitType(type: KType)