mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-04-30 21:34:25 +02:00
20 lines
679 B
Kotlin
20 lines
679 B
Kotlin
package app.revanced.patcher.extensions
|
|
|
|
import app.revanced.patcher.extensions.AnnotationExtensions.findAnnotationRecursively
|
|
import app.revanced.patcher.fingerprint.method.annotation.FuzzyPatternScanMethod
|
|
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
|
|
|
|
object MethodFingerprintExtensions {
|
|
|
|
/**
|
|
* The name of a [MethodFingerprint].
|
|
*/
|
|
val MethodFingerprint.name: String
|
|
get() = this.javaClass.simpleName
|
|
|
|
/**
|
|
* The [FuzzyPatternScanMethod] annotation of a [MethodFingerprint].
|
|
*/
|
|
val MethodFingerprint.fuzzyPatternScanMethod
|
|
get() = javaClass.findAnnotationRecursively(FuzzyPatternScanMethod::class)
|
|
} |