klyn.reflection.Annotation.argument
method

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

Description

Returns an annotation argument value or a default value.

Parameters

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

Returns

Raw source value for the argument.

Example

    ann = Annotation("Entity", {"tableName": "T_Users"})
    assert ann.argument("tableName", "User") == "T_Users"
    assert ann.argument("schema", "public") == "public"