EzHookTool
Toggle table of contents
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
EzHookTool
core
/
io.github.lingqiqi5211.ezhooktool.core
/
callStaticMethodAsOrNull
call
Static
Method
As
Or
Null
inline
fun
<
T
>
Class
<
*
>
.
callStaticMethodAsOrNull
(
methodName
:
String
,
args
:
Args
,
argTypes
:
ArgTypes
=
argTypes()
,
returnType
:
Class
<
*
>
?
=
null
)
:
T
?
静态方法调用,类型不匹配时返回 null。
inline
fun
<
T
>
Class
<
*
>
.
callStaticMethodAsOrNull
(
methodName
:
String
,
vararg
args
:
Any
?
)
:
T
?
自动匹配参数并调用静态方法,类型不匹配时返回 null。