fun ofMethod(returnType: CtClass?, paramTypes: Array<CtClass?>?): String? { val desc = StringBuffer() desc.append('(') if (paramTypes != null) { val n = paramTypes.size for (i in 0 until n) toDescriptor(desc, paramTypes[i]) } desc.append(')') if (returnType != null) toDescriptor(desc, returnType) return desc.toString() }
Returns the descriptor representing a method that receives the given parameter types and returns the given type .