evaluateAs

inline fun <T : Any> evaluateAs(): T

Evaluate the expression and convert result to Kotlin type.

Return

Result converted to Kotlin type T

Throws

If runtime error occurs

If result cannot be converted to T


inline fun <T : Any> evaluateAs(context: FeelContext): T

Evaluate with context and convert result to Kotlin type.

Return

Result converted to Kotlin type T

Parameters

context

Context containing variables