getReal

fun getReal(token: Any?): Any?

Detokenize a token string into the real Kotlin/JVM instance it represents.

Accepts non-token values, and passes them through unchanged. So can be used to E.G. blindly transform a Collection/JSON Array that only maybe contains some token strings by being called on every element.

Return

Real instance from detokenizing input if given a token string, input value or instance unchanged if not given a token string.

Parameters

token

Previously generated token, or any instance or value.

Throws

If given a token string but not a valid one (E.G. if its object was garbage-collected, or if it's fake).

Sources

jvm source
Link copied to clipboard