FeelExpression

Compiled FEEL expression ready for evaluation.

Expressions are immutable and thread-safe after compilation. Use the companion object's parse() method to create instances.

Example:

val expr = FeelExpression.parse("2 + 3 * 4")
val result = expr.evaluate() // 14

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Get the original expression string.

Functions

Link copied to clipboard

Evaluate the expression with an empty context.

Evaluate the expression with the given context.

Link copied to clipboard
inline fun <T : Any> evaluateAs(): T

Evaluate the expression and convert result to Kotlin type.

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

Evaluate with context and convert result to Kotlin type.

Link copied to clipboard
open override fun toString(): String