Package 

Class RuntimeExtensionsKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static <T extends Any> T ,String)>evaluateJs(<Error class: unknown class> $self, String js) Evaluates the given js expression, and returns the result as a value of type T.
      final static <T extends Any> T ,String,DeserializationStrategy)>evaluateJs(<Error class: unknown class> $self, String js, DeserializationStrategy<T> deserializer) Evaluates the given js expression, and returns the result as a value of type T using the provided deserializer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • evaluateJs

         final static <T extends Any> T ,String)>evaluateJs(<Error class: unknown class> $self, String js)

        Evaluates the given js expression, and returns the result as a value of type T.

        The value is converted from JSON using Kotlinx Serialization, so the type T must be @Serializable.

      • evaluateJs

         final static <T extends Any> T ,String,DeserializationStrategy)>evaluateJs(<Error class: unknown class> $self, String js, DeserializationStrategy<T> deserializer)

        Evaluates the given js expression, and returns the result as a value of type T using the provided deserializer.

        The value is converted from JSON using Kotlinx Serialization, so the type T must be @Serializable.