public class Parameter
Runtime representation of a method or constructor parameter.
import klyn.reflection
param = Parameter("value", Int.type)
assert param.name == "value"
assert param.type == Int.type| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | annotationsannotations as ArrayList<Annotation> |
Parameter annotations. |
| public readonly property | namename as String |
Parameter name. |
| public readonly property | typetype as Type |
Parameter type. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | ParameterParameter(name as String, type as Type, annotations as IList<Annotation> = []) |
Builds parameter metadata. |