addCaller

Adds a matcher for when this method is called by a specified method.

----------------

添加本方法被指定方法调用的匹配器。

addCaller(MethodMatcher().name("length"))

Return

MethodMatcher

Parameters

callerMethod

call method matcher / 方法调用方法匹配器


fun addCaller(methodDescriptor: String): MethodMatcher

Adds a matcher for when this method is called by a specified method.

----------------

添加本方法被指定方法调用的匹配器。

addCaller("Ljava/lang/String;->length()I")

Return

MethodMatcher

Parameters

methodDescriptor

call method descriptor / 方法调用方法的描述符


inline fun addCaller(init: MethodMatcher.() -> Unit): MethodMatcher

See also