ReflectionIntrospector

Introspects Kotlin classes using reflection to build a TypeGraph.

This introspector analyzes class structures including properties, constructors, and type hierarchies to generate schema IR nodes.

Example

val typeGraph = ReflectionIntrospector.introspect(MyClass::class)

Limitations

  • Requires classes to have a primary constructor

  • Type parameters are not fully supported

Functions

Link copied to clipboard
open override fun introspect(root: KClass<*>): TypeGraph