Constructors

Link copied to clipboard
constructor()
constructor(clazz: Class<*>)
constructor(descriptor: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Fully qualified class name.

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

Link copied to clipboard
Link copied to clipboard

The class descriptor, specifies a unique class.

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

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Class modifiers. Match using java.lang.reflect.Modifier mask bits, default match type is contains, if you need to match exactly, please use modifiers overloaded function.

Link copied to clipboard
Link copied to clipboard

The class source file name, if smali exists .source, for example: .source "MainActivity.java".

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

Link copied to clipboard
Link copied to clipboard

Fully qualified super class name.

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

Link copied to clipboard
Link copied to clipboard

Using string list. Default match type is contains, if you need to match exactly, please use usingStrings or addUsingString overloaded function for each string.

Functions

Link copied to clipboard

Add class annotation matcher.

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

Link copied to clipboard
fun addEqString(usingString: String): ClassMatcher

Add using string(fuzzy match).

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

Link copied to clipboard
inline fun addField(init: FieldMatcher.() -> Unit): ClassMatcher

fun addField(fieldMatcher: FieldMatcher): ClassMatcher

Add class field matcher.

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

Link copied to clipboard
fun addFieldForName(fieldName: String, matchType: StringMatchType = StringMatchType.Equals, ignoreCase: Boolean = false): ClassMatcher

Add class field name matcher.

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

Link copied to clipboard
fun addFieldForType(typeName: String, matchType: StringMatchType = StringMatchType.Equals, ignoreCase: Boolean = false): ClassMatcher

Add class field type matcher.

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

Link copied to clipboard
inline fun addInterface(init: ClassMatcher.() -> Unit): ClassMatcher

fun addInterface(interfaceMatcher: ClassMatcher): ClassMatcher

Add class implements interface matcher.

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

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

Add class implements interface name matcher.

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

Link copied to clipboard
inline fun addMethod(init: MethodMatcher.() -> Unit): ClassMatcher

fun addMethod(methodMatcher: MethodMatcher): ClassMatcher

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

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

Link copied to clipboard

Add using string matcher.

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

fun addUsingString(usingString: String, matchType: StringMatchType = StringMatchType.Contains, ignoreCase: Boolean = false): ClassMatcher

Add using string.

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

Link copied to clipboard

Class annotation count.

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

fun annotationCount(min: Int = 0, max: Int = Int.MAX_VALUE): ClassMatcher

Class annotation count range.

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

Link copied to clipboard

Class declared annotations matcher.

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

Link copied to clipboard
fun className(className: String, matchType: StringMatchType = StringMatchType.Equals, ignoreCase: Boolean = false): ClassMatcher

Class name string matcher.

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

Link copied to clipboard
fun descriptor(descriptor: String): ClassMatcher

The class descriptor, specifies a unique class.

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

Link copied to clipboard

Class field count.

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

fun fieldCount(min: Int = 0, max: Int = Int.MAX_VALUE): ClassMatcher

Class field count range.

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

Link copied to clipboard
inline fun fields(init: FieldsMatcher.() -> Unit): ClassMatcher

Class declared fields matcher.

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

Link copied to clipboard

Class implements interface count.

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

fun interfaceCount(min: Int = 0, max: Int = Int.MAX_VALUE): ClassMatcher

Class implements interface count range.

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

Link copied to clipboard

Class implements interfaces matcher.

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

Link copied to clipboard

Class method count, contains constructor (method name: <init>) and static block (method name: <clinit>).

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

fun methodCount(min: Int = 0, max: Int = Int.MAX_VALUE): ClassMatcher

Class method count range, contains constructor (method name: <init>) and static block (method name: <clinit>).

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

Link copied to clipboard
inline fun methods(init: MethodsMatcher.() -> Unit): ClassMatcher

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

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

Link copied to clipboard

Class modifiers matcher.

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

fun modifiers(modifiers: Int, matchType: MatchType = MatchType.Contains): ClassMatcher

Class modifiers. Match using java.lang.reflect.Modifier mask bits.

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

Link copied to clipboard

The class source file name matcher.

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

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

The class source file name, if smali exists .source, for example: .source "MainActivity.java".

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

Link copied to clipboard
inline fun superClass(init: ClassMatcher.() -> Unit): ClassMatcher

Super class matcher.

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

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

Super class name string matcher.

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

Link copied to clipboard
fun usingEqStrings(vararg usingStrings: String): ClassMatcher

Using strings matcher(fuzzy match).

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

Link copied to clipboard
fun usingStrings(vararg usingStrings: String): ClassMatcher

Using strings matcher. default match type is contains, if you need to match exactly, please use usingStrings or addUsingString overloaded function for each string.


fun usingStrings(usingStrings: Collection<String>, matchType: StringMatchType = StringMatchType.Contains, ignoreCase: Boolean = false): ClassMatcher

Using strings matcher.

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