mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-06 02:35:40 +08:00
Merge code to inline method, improve execution efficiency
This commit is contained in:
@@ -71,13 +71,17 @@ var returnType: Any?
|
||||
### modifiers [method]
|
||||
|
||||
```kotlin
|
||||
fun modifiers(initiate: ModifierRules.() -> Unit): IndexTypeCondition
|
||||
inline fun modifiers(initiate: ModifierRules.() -> Unit): IndexTypeCondition
|
||||
```
|
||||
|
||||
**变更记录**
|
||||
|
||||
`v1.0.67` `新增`
|
||||
|
||||
`v1.0.80` `修改`
|
||||
|
||||
将方法体进行 inline
|
||||
|
||||
**功能描述**
|
||||
|
||||
> 设置 `Method` 标识符筛选条件。
|
||||
@@ -209,13 +213,17 @@ inner class RemedyPlan
|
||||
#### method [method]
|
||||
|
||||
```kotlin
|
||||
fun method(initiate: MethodFinder.() -> Unit): Result
|
||||
inline fun method(initiate: MethodFinder.() -> Unit): Result
|
||||
```
|
||||
|
||||
**变更记录**
|
||||
|
||||
`v1.0` `添加`
|
||||
|
||||
`v1.0.80` `修改`
|
||||
|
||||
将方法体进行 inline
|
||||
|
||||
**功能描述**
|
||||
|
||||
> 创建需要重新查找的 `Method`。
|
||||
@@ -281,13 +289,17 @@ inner class Result(internal val isNoSuch: Boolean, private val e: Throwable?)
|
||||
#### result [method]
|
||||
|
||||
```kotlin
|
||||
fun result(initiate: Result.() -> Unit): Result
|
||||
inline fun result(initiate: Result.() -> Unit): Result
|
||||
```
|
||||
|
||||
**变更记录**
|
||||
|
||||
`v1.0` `添加`
|
||||
|
||||
`v1.0.80` `修改`
|
||||
|
||||
将方法体进行 inline
|
||||
|
||||
**功能描述**
|
||||
|
||||
> 创建监听结果事件方法体。
|
||||
@@ -381,13 +393,17 @@ fun wait(instance: Any?, initiate: Instance.() -> Unit)
|
||||
#### remedys [method]
|
||||
|
||||
```kotlin
|
||||
fun remedys(initiate: RemedyPlan.() -> Unit): Result
|
||||
inline fun remedys(initiate: RemedyPlan.() -> Unit): Result
|
||||
```
|
||||
|
||||
**变更记录**
|
||||
|
||||
`v1.0` `添加`
|
||||
|
||||
`v1.0.80` `修改`
|
||||
|
||||
将方法体进行 inline
|
||||
|
||||
**功能描述**
|
||||
|
||||
> 创建方法重查找功能。
|
||||
@@ -416,13 +432,17 @@ method {
|
||||
#### onNoSuchMethod [method]
|
||||
|
||||
```kotlin
|
||||
fun onNoSuchMethod(initiate: (Throwable) -> Unit): Result
|
||||
inline fun onNoSuchMethod(initiate: (Throwable) -> Unit): Result
|
||||
```
|
||||
|
||||
**变更记录**
|
||||
|
||||
`v1.0` `添加`
|
||||
|
||||
`v1.0.80` `修改`
|
||||
|
||||
将方法体进行 inline
|
||||
|
||||
**功能描述**
|
||||
|
||||
> 监听找不到方法时。
|
||||
|
Reference in New Issue
Block a user