A lightweight Java bytecode manipulation framework built on ASM.
- Simple API - Annotation-based bytecode transformation
- Type-safe - No raw bytecode manipulation required
- Flexible - Inject, invoke, redirect, and modify methods
- Zero dependencies - Only requires ASM
Add JitPack repository to your build file:
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'com.github.brqnko:bytekin:1.0-SNAPSHOT'
}@Inject(
target = @MethodTarget(
owner = "com/example/MyClass",
name = "myMethod",
descriptor = "()V"
),
at = @At(value = At.Position.HEAD)
)
public static void beforeMyMethod(CallbackInfo ci) {
System.out.println("Method called!");
}Full Documentation | 日本語ドキュメント
Apache License 2.0 - See LICENSE for details.