KavaRef

KavaRef

A modernizing Java Reflection with Kotlin

Get Started Changelog

Light and Elegant

A powerful, elegant, beautiful API built with Kotlin lambda can help you quickly implement bytecode filtering and reflection functions.

Fully Compatible

Using native Java APIs to implement reflection functionality, it can be used on any Kotlin on JVM project, and it is no problem on Android.

Quick to Start

Simple and easy to use right now! No complex configuration or extensive development experience required. Just integrate the dependencies and enjoy!

Start reflecting anytime, anywhere.

public class World {

    private void sayHello(String content) {
        System.out.println("Hello " + content + "!");
    }
}
val myWorld = World()

World::class.resolve().firstMethod {
    name = "sayHello"
    parameters(String::class)
}.of(myWorld).invoke("KavaRef")