Interface Evaluator
-
- All Known Implementing Classes:
AndEvaluator
,EqualEvaluator
,MatchEvaluator
,NotEvaluator
,OrEvaluator
public interface Evaluator
This is the base interface for evaluating boolean expressions. It executes a boolean expression and return true or false based on the result of executing the boolean expression.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
evaluate(EvaluatorContext context)
Evaluate a boolean expressionString
getName()
Name of the evaluator
-
-
-
Method Detail
-
evaluate
boolean evaluate(EvaluatorContext context) throws EvaluatorException
Evaluate a boolean expression- Parameters:
context
- hold the information about the HTTP request- Returns:
- result of evaluating the boolean expression
- Throws:
EvaluatorException
- if an error occurs while evaluating the HTTP request
-
getName
String getName()
Name of the evaluator- Returns:
- name of the evaluator
-
-