klyn.reflection.Property.getValue
method
public native getValue(target as Object) as Object
Description

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

Non-public properties require accessible = true.

Parameters
ParameterDescription
targetInstance owning the reflected property.
Returns

Current boxed value of the property.

Throws
  • TypeError if the target is null, the property is inaccessible, or the property is write-only.
Example
prop = type(obj).properties[0u]
prop.accessible = true
print(prop.getValue(obj))