KYuki Reflection

KYuki Reflection

An efficient Reflection API for Java and Android built in Kotlin - Fully attach Kotlin high-order reflections.Fully attach Kotlin high-order reflections.

Get Started Changelog

Intuitive

KYukiReflection comes from YukiReflection and follows most of the original content in terms of design logic, making the KYukiReflection experience consistent with the YukiReflection experience.

Generic Refinement

For YukiReflection's relatively weak support for generics, this set of APIs perfectly adapts to more possible situations and refines the generic experience.

Multiple Conditions

The support for Kotlin is not meant to be discussed on paper but to be expanded in an all-round way. It supports the modifier conditions of all keywords, supports various generics, various customized parameters, and provides more detailed support for retrieval of nullable characteristics and variance characteristics. conditional experience.

Bring it on! Let reflection become poetic and picturesque

public class World {

    public static class A<T>{}

    private void sayHello(A<String> content) {
        System.out.println("Hello " + content + "!");
    }
}
val newWorld = World()
val newWorldA = World.A<String>()
kclassOf<World>().method {
    name = "sayHello"
    param(VagueKotlin.generic(StringKClass))
    returnType = UnitKClass
}.get(newWorld).call(newWorldA)