addParameter

open fun addParameter(type: Type, name: String): N(source)
open fun addParameter(paramClass: Class<out Any>, name: String): N(source)
open fun addParameter(parameter: Parameter): N(source)


open fun addParameter(className: String, name: String): N(source)

Remember to import the class in the compilation unit yourself

Parameters

className

the name of the class, ex : org.test.Foo or Foo if you added manually the import

name

the name of the parameter