Parameter
classin packageklyn.reflection
public class Parameter:
Parameter

Runtime representation of a method or constructor parameter.

Example
import klyn.reflection

param = Parameter("value", Int.type)
assert param.name == "value"
assert param.type == Int.type
Properties
Modifier and Type Member Description
public readonly property annotations
annotations as ArrayList<Annotation>:
Parameter annotations.
public readonly property name
name as String:
Parameter name.
public readonly property type
type as Type:
Parameter type.
Constructors
Modifier and Type Member Description
public Parameter
Parameter(name as String, type as Type, annotations as IList<Annotation> = []):
Builds parameter metadata.
Methods
Modifier and Type Member Description
public override toString
toString() as String:
Converts this parameter to a readable string.