Added HookParam any() method in args instance

This commit is contained in:
2022-04-15 01:35:48 +08:00
parent 1a1089cb2f
commit 099ac65e55
2 changed files with 20 additions and 0 deletions

View File

@@ -255,6 +255,12 @@ class HookParam(private val createrInstance: YukiHookCreater, private val wrappe
*/
fun boolean() = cast() ?: false
/**
* 得到方法参数的实例对象 [Any]
* @return [Any] or null
*/
fun any() = cast<Any?>()
/**
* 得到方法参数的实例对象 [Array] - 每项类型 [T]
*