Interface IEvaluator
-
- All Known Implementing Classes:
AbstractEvaluator
,LazyEvaluator
public interface IEvaluator
This 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 boolean
evaluate(String expression, Map<String,Object> values)
Evaluate an expression as a boolean response.Object
evaluateExpression(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:
true
if 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
-
-