Minix
5.0.0-alpha
module-common
/
dev.racci.minix.api.utils.reflection
/
OverrideUtils
/
ifOverridesFunction
if
Overrides
Function
@
JvmName
(
name
=
"ifOverridesKFunction"
)
inline
fun
<
T
:
Any
,
C
:
KFunction
<
*
>
,
R
>
ifOverridesFunction
(
kClass
:
KClass
<
T
>
,
function
:
C
,
action
:
C
.
(
)
->
R
)
:
R
?
@
JvmName
(
name
=
"ifOverridesKFunctionKCallable"
)
inline
fun
<
T
:
Any
,
R
>
ifOverridesFunction
(
kClass
:
KClass
<
T
>
,
function
:
(
)
->
R
)
:
R
?
@
JvmName
(
name
=
"ifOverridesKSuspendFunction"
)
inline
fun
<
T
:
Any
,
R
>
ifOverridesFunction
(
kClass
:
KClass
<
T
>
,
function
:
suspend
(
)
->
R
)
:
R
?
@
JvmName
(
name
=
"ifOverridesKFunctionInstance"
)
inline
fun
<
T
:
Any
,
R
>
ifOverridesFunction
(
instance
:
T
,
function
:
KFunction
<
*
>
,
action
:
T
.
(
)
->
R
)
:
R
?