Package org.apache.synapse.commons.evaluators

# 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

  Modifier and Type
  Method
  Description
  `boolean`
  `evaluate(EvaluatorContext context)`
  Evaluate a boolean expression
  `String`
  `getName()`
  Name of the evaluator

- ## Method Details

  - ### 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