addMethod

fun addMethod(methodMatcher: MethodMatcher): ClassMatcher

Add class method matcher, contains constructor (method name: <init>) and static block (method name: <clinit>).

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

添加类方法的匹配器,包含构造函数(方法名:)以及静态代码块(方法名: <clinit>)。

addMethod(MethodMatcher().name("method"))

Return

ClassMatcher

Parameters

methodMatcher

method matcher / 方法匹配器


inline fun addMethod(init: MethodMatcher.() -> Unit): ClassMatcher

See also