Skip to content

Commit

Permalink
feat: add missing setter to MutableMethod
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Jan 2, 2023
1 parent 365da96 commit 8f3ecc3
Showing 1 changed file with 16 additions and 0 deletions.
Expand Up @@ -20,6 +20,22 @@ class MutableMethod(method: Method) : Method, BaseMethodReference() {
private val _parameterTypes by lazy { method.parameterTypes.toMutableList() }
private val _hiddenApiRestrictions by lazy { method.hiddenApiRestrictions }

fun setDefiningClass(definingClass: String) {
this.definingClass = definingClass
}

fun setName(name: String) {
this.name = name
}

fun setAccessFlags(accessFlags: Int) {
this.accessFlags = accessFlags
}

fun setReturnType(returnType: String) {
this.returnType = returnType
}

override fun getDefiningClass(): String {
return definingClass
}
Expand Down

0 comments on commit 8f3ecc3

Please sign in to comment.