Class LazyEvaluator
- java.lang.Object
-
- com.intergral.deep.agent.api.plugin.AbstractEvaluator
-
- com.intergral.deep.agent.api.plugin.LazyEvaluator
-
- All Implemented Interfaces:
IEvaluator
public class LazyEvaluator extends AbstractEvaluator
This type allows the evaluator to be loaded only if it is needed. ie. if we have no watches or conditions there is no need for an evaluator.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
LazyEvaluator.IEvaluatorLoader
This type allows us to lazy load an evaluator when it is first used.
-
Constructor Summary
Constructors Constructor Description LazyEvaluator(LazyEvaluator.IEvaluatorLoader loader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
evaluateExpression(String expression, Map<String,Object> values)
Evaluate an expression to the value.-
Methods inherited from class com.intergral.deep.agent.api.plugin.AbstractEvaluator
evaluate, objectToBoolean
-
-
-
-
Constructor Detail
-
LazyEvaluator
public LazyEvaluator(LazyEvaluator.IEvaluatorLoader loader)
-
-
Method Detail
-
evaluateExpression
public Object evaluateExpression(String expression, Map<String,Object> values) throws Throwable
Description copied from interface:IEvaluator
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
-
-