addInterface

fun addInterface(interfaceMatcher: ClassMatcher): ClassMatcher

Add class implements interface matcher.

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

添加类实现接口的匹配器。

addInterface(ClassMatcher().className("android.view.View"))

Return

ClassMatcher

Parameters

interfaceMatcher

interfaces matcher / 接口匹配器


fun addInterface(className: String, matchType: StringMatchType = StringMatchType.Equals, ignoreCase: Boolean = false): ClassMatcher

Add class implements interface name matcher.

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

添加类实现接口的名的匹配器。

addInterface("android.view.View", StringMatchType.Equals, false)

Return

ClassMatcher

Parameters

className

interface class name / 接口类名

matchType

string match type / 字符串匹配类型

ignoreCase

ignore case / 忽略大小写


inline fun addInterface(init: ClassMatcher.() -> Unit): ClassMatcher

See also