com.flyjingfish.android_aop_plugin.beans.ReplaceMethodInfo.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of android-aop-plugin Show documentation
Show all versions of android-aop-plugin Show documentation
Lightweight Aop for Android platform, you deserve it, action is worse than your heartbeat
package com.flyjingfish.android_aop_plugin.beans
data class ReplaceMethodInfo(
var oldOwner: String,
var oldMethodName: String,
var oldMethodDesc: String,
var newOwner: String,
var newMethodName: String,
var newMethodDesc: String
){
fun getReplaceKey():String{
return oldOwner + oldMethodName + oldMethodDesc
}
fun getReplaceJsonKey():String{
return oldOwner + newOwner
}
fun checkAvailable():Boolean{
return oldOwner.isNotEmpty() && oldMethodName.isNotEmpty() && oldMethodDesc.isNotEmpty()
&& newOwner.isNotEmpty() && newMethodName.isNotEmpty() && newMethodDesc.isNotEmpty()
}
}