Package 

Class ReflectionExtensionsKt

    • Method Summary

      Modifier and Type Method Description
      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.
      final static <T extends Any, V extends Any> V getFieldValue(T $self, String fieldName) Returns the value of the field with the specified name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 accessible flag to true.

      • 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 accessible flag to true.