data class ParameterInfo: Any
Fields
Name | Description |
---|---|
val index: Int
|
0-based index of this parameter in the parameter list of its containing callable. |
val name: String
|
Name of this parameter as it was declared in the source code,
or |
val isOptional: Boolean
|
A parameter is optional in any of the two cases:
|
val isVararg: Boolean
|
|
val type: KType
|
Type of this parameter. For a |
val kind: Kind
|
Kind of this parameter. Kind represents a particular position of the parameter declaration in the source code, such as an instance, an extension receiver parameter or a value parameter. |
Constructors
<init>
constructor(index: Int, name: String, isOptional: Boolean, isVararg: Boolean, type: KType, kind: Kind)
Provides additional information about Class parameter to custom defined generators. The reason why KParameter is not used is that you will want to provide additional information about parameter that is not available in KParameter class.
Parameters
Name | Description |
---|---|
index: Int
|
|
name: String
|
|
isOptional: Boolean
|
|
isVararg: Boolean
|
|
type: KType
|
|
kind: Kind
|
Provides additional information about Class parameter to custom defined generators. The reason why KParameter is not used is that you will want to provide additional information about parameter that is not available in KParameter class.