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

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `evaluate(EvaluatorContext context)` Evaluate a boolean expression
    `String` | `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

Copyright © 2005–2018 Apache Software Foundation. All rights reserved.