klyn.reflection.Attribute.getValue
method

    public native getValue(target as Object) as Object

Description

Returns the current value of the attribute on the given target object.

Non-public attributes require `accessible = true`.

Parameters

Parameter | Description
--- | ---
`target` | Instance owning the reflected attribute.

Returns

Current boxed value of the attribute.

Example

    attr = type(r).getAttribute("_numerator")
    attr.accessible = true
    assert attr.getValue(r) == 1