public class AndEvaluator extends AbstractEvaluator
This evaluator is a set of evaluators that are applied used the and
operator. It means that the evaluate method only returns true
if all the evaluators return true
.
A condition to use this type of evaluators is that the evaluate method of all the single evaluators has to return a boolean value.
Constructor and Description |
---|
AndEvaluator(Evaluator evaluator) |
Modifier and Type | Method and Description |
---|---|
void |
addEvaluator(Evaluator evaluator) |
Object |
evaluate(EvaluatorData data)
Evaluate with the data passed as parameter.
|
String |
getName()
Get the symbolic name of the evaluator.
|
String |
getSQL()
Get a SQL representation of the evaluator.
|
getDescription, getFieldsInfo
public AndEvaluator(Evaluator evaluator)
public Object evaluate(EvaluatorData data) throws EvaluatorException
Evaluator
EvaluatorException
- if an issue is found while evaluating.
The subclass EvaluatorParseException
is used to indicate
a problem while parsing (malformed expression) rather than a
problem while evaluating.public String getName()
Evaluator
public void addEvaluator(Evaluator evaluator)