addAndGetParameter

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


open fun addAndGetParameter(className: String, name: String): Parameter(source)

Remember to import the class in the compilation unit yourself

Return

the Parameter created

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