klyn.reflection.Annotation.argumentType
method

    public argumentType(name as String, defaultValue as String = "") as String:

Description

Returns an annotation argument token kind or a default value.

Parameters

Parameter | Description
--- | ---
`name` | Argument name.
`defaultValue` | Returned when the argument is absent.

Returns

Token kind captured by the compiler.

Example

    ann = Annotation("Column", {"length": "255"}, {"length": "Int"})
    assert ann.argumentType("length", "") == "Int"