Cleaned up cached methods, added toString
This commit is contained in:
parent
da44f7c339
commit
6f8a9c9d05
|
@ -46,4 +46,8 @@ class CachedAsmMethod(val methodAccessIndex: Int, val methodAccess: MethodAccess
|
||||||
override fun invoke(connection: Connection, target: Any, args: Array<Any>): Any? {
|
override fun invoke(connection: Connection, target: Any, args: Array<Any>): Any? {
|
||||||
return methodAccess.invoke(target, methodAccessIndex, *args)
|
return methodAccess.invoke(target, methodAccessIndex, *args)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun toString(): String {
|
||||||
|
return "CachedAsmMethod{name:" + method.name + ", methodClassId=" + methodClassId + ", methodIndex=" + methodIndex + '}'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,8 +49,7 @@ open class CachedMethod(val method: Method, val methodIndex: Int, val methodClas
|
||||||
var overriddenMethod: Method? = null
|
var overriddenMethod: Method? = null
|
||||||
|
|
||||||
|
|
||||||
@Throws(Exception::class)
|
open fun invoke(connection: Connection, target: Any, args: Array<Any>): Any? {
|
||||||
open operator fun invoke(connection: Connection, target: Any, args: Array<Any>): Any? {
|
|
||||||
return method.invoke(target, *args)
|
return method.invoke(target, *args)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user