class Jexl
(source)
Jexl(grammar: Grammar = Grammar()) |
fun addTransform(name: String, transform: Transform): Unit
Adds or replaces a transform function in this Jexl instance. |
|
fun evaluate(expression: String, context: JexlContext = JexlContext()): JexlValue
Evaluates a Jexl string within an optional context. |
|
fun evaluateBooleanExpression(expression: String, context: JexlContext = JexlContext(), defaultValue: Boolean? = null): Boolean
Evaluates a Jexl string with an optional context to a Boolean result. Optionally a default value can be provided that will be returned in the expression does not return a boolean result. |