Added new function to call CurrentClass in ReflectionFactory

This commit is contained in:
2022-08-10 00:19:04 +08:00
parent b92c390ae9
commit b9f41a690c
3 changed files with 65 additions and 0 deletions

View File

@@ -389,10 +389,18 @@ inline fun Class<*>.constructor(initiate: ConstructorFinder.() -> Unit): Constru
inline fun <reified T : Any> T.current(initiate: CurrentClass.() -> Unit): T
```
```kotlin
inline fun <reified T : Any> T.current(): CurrentClass
```
**变更记录**
`v1.0.70` `新增`
`v1.0.93` `新增`
新增不使用 `current { ... }` 调用域直接使用 `current()` 得到实例的类操作对象
**功能描述**
> 获得当前实例的类操作对象。