EvalContext

class EvalContext(var currentTemplate: KorteTemplate.TemplateEvalContext, var scope: KorteTemplate.Scope, val config: KorteTemplateConfig, val mapper: KorteObjectMapper2, var write: suspend (str: String) -> Unit) : KorteDynamicContext

Constructors

Link copied to clipboard
constructor(currentTemplate: KorteTemplate.TemplateEvalContext, scope: KorteTemplate.Scope, config: KorteTemplateConfig, mapper: KorteObjectMapper2, write: suspend (str: String) -> Unit)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var write: suspend (str: String) -> Unit

Functions

Link copied to clipboard
inline fun capture(callback: () -> Unit): String
Link copied to clipboard
inline fun captureRaw(callback: () -> Unit): KorteRawString
Link copied to clipboard
open fun combineTypes(a: Any?, b: Any?): Any?
Link copied to clipboard
open operator fun Number.compareTo(other: Number): Int
Link copied to clipboard
inline fun <T> createScope(content: MutableMap<*, *> = LinkedHashMap<Any?, Any?>(), callback: () -> T): T
Link copied to clipboard
open suspend fun Any?.dynamicCall(vararg args: Any?, mapper: KorteObjectMapper2): Any?
Link copied to clipboard
open suspend fun Any?.dynamicCallMethod(methodName: Any?, vararg args: Any?, mapper: KorteObjectMapper2): Any?
Link copied to clipboard
open suspend fun Any?.dynamicGet(key: Any?, mapper: KorteObjectMapper2): Any?
Link copied to clipboard
open fun Any?.dynamicLength(): Int
Link copied to clipboard
open suspend fun Any?.dynamicSet(key: Any?, value: Any?, mapper: KorteObjectMapper2)
Link copied to clipboard
inline fun <T> setTempTemplate(template: KorteTemplate.TemplateEvalContext, callback: () -> T): T
Link copied to clipboard
Link copied to clipboard
open fun Any?.toDynamicCastToType(other: Any?): Any?
Link copied to clipboard
Link copied to clipboard
open fun Any?.toDynamicInt(): Int
Link copied to clipboard
open fun Any?.toDynamicList(): List<*>
Link copied to clipboard
open fun Any?.toDynamicLong(): Long
Link copied to clipboard
Link copied to clipboard