-
public final class ReflectionExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any, V extends Any> UnitsetFieldValue(T $self, String fieldName, V value)Updates the value of the field with the specified name to the given value. final static <T extends Any, V extends Any> VgetFieldValue(T $self, String fieldName)Returns the value of the field with the specified name. -
-
Method Detail
-
setFieldValue
final static <T extends Any, V extends Any> Unit setFieldValue(T $self, String fieldName, V value)
Updates the value of the field with the specified name to the given value. This involves temporarily setting the
accessibleflag totrue.
-
getFieldValue
final static <T extends Any, V extends Any> V getFieldValue(T $self, String fieldName)
Returns the value of the field with the specified name. This involves temporarily setting the
accessibleflag totrue.
-
-
-
-