mirror of
https://github.com/HighCapable/KavaRef.git
synced 2025-09-05 10:15:22 +08:00
38 lines
1.1 KiB
Markdown
38 lines
1.1 KiB
Markdown
---
|
|
home: true
|
|
title: Home
|
|
heroImage: /images/logo.svg
|
|
actions:
|
|
- text: Get Started
|
|
link: /en/guide/home
|
|
type: primary
|
|
- text: Changelog
|
|
link: /en/about/changelog
|
|
type: secondary
|
|
features:
|
|
- title: Light and Elegant
|
|
details: A powerful, elegant, beautiful API built with Kotlin lambda can help you quickly implement bytecode filtering and reflection functions.
|
|
- title: Fully Compatible
|
|
details: 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.
|
|
- title: Quickly Started
|
|
details: Simple and easy to use it now! Do not need complex configuration and full development experience, Integrate dependencies and enjoy yourself.
|
|
footer: Apache-2.0 License | Copyright (C) 2019 HighCapable
|
|
---
|
|
|
|
### Start reflecting anytime, anywhere.
|
|
|
|
```java
|
|
public class World {
|
|
|
|
private void sayHello(String content) {
|
|
System.out.println("Hello " + content + "!");
|
|
}
|
|
}
|
|
```
|
|
|
|
```kotlin
|
|
World().resolve().firstMethod {
|
|
name = "sayHello"
|
|
parameters(String::class)
|
|
}.invoke("KavaRef")
|
|
``` |