Interface IEvaluator
-
- All Known Implementing Classes:
AbstractEvaluator,CFEvaluator,LazyEvaluator,NashornReflectEvaluator
public interface IEvaluatorThis defines an evaluator, and evaluator is used to evaluate expression at runtime. ie allows a watch or condition to execute within the scope of the tracepoint.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanevaluate(String expression, Map<String,Object> values)Evaluate an expression as a boolean response.ObjectevaluateExpression(String expression, Map<String,Object> values)Evaluate an expression to the value.
-
-
-
Method Detail
-
evaluate
boolean evaluate(String expression, Map<String,Object> values)
Evaluate an expression as a boolean response.- Parameters:
expression- the expression to evaluatevalues- the variables that the expression can evaluate against- Returns:
trueif the expression evaluates to truthy value.- See Also:
AbstractEvaluator.objectToBoolean(Object)
-
evaluateExpression
Object evaluateExpression(String expression, Map<String,Object> values) throws Throwable
Evaluate an expression to the value.- Parameters:
expression- the expression to evaluatevalues- the variables that the expression can evaluate against- Returns:
- the result of the expression
- Throws:
Throwable- if the expression fails
-
-