mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 09:45:19 +08:00
Added new function
This commit is contained in:
@@ -247,6 +247,12 @@ class ConstructorFinder(
|
||||
*/
|
||||
fun get() = Instance()
|
||||
|
||||
/**
|
||||
* 得到构造方法本身
|
||||
* @return [Constructor] or null
|
||||
*/
|
||||
fun give() = memberInstance as? Constructor<*>?
|
||||
|
||||
/**
|
||||
* 获得 [Constructor] 实例处理类
|
||||
*
|
||||
|
@@ -271,6 +271,12 @@ class MethodFinder(
|
||||
*/
|
||||
fun get(instance: Any? = null) = Instance(instance)
|
||||
|
||||
/**
|
||||
* 得到方法本身
|
||||
* @return [Method] or null
|
||||
*/
|
||||
fun give() = memberInstance as? Method?
|
||||
|
||||
/**
|
||||
* 获得 [Method] 实例处理类
|
||||
*
|
||||
|
Reference in New Issue
Block a user