Interface Evaluator
- All Known Implementing Classes:
CelPrograms,OneofEvaluator
public interface Evaluator
Evaluator defines a validation evaluator. evaluator implementations may elide type
checking of the passed in value, as the types have been guaranteed during the build phase.-
Method Summary
Modifier and TypeMethodDescriptionChecks that the provided val is valid.booleanReturns true if the evaluator always succeeds.
-
Method Details
-
tautology
boolean tautology()Returns true if the evaluator always succeeds. -
evaluate
Checks that the provided val is valid. Unless failFast is true, evaluation attempts to find allViolationspresent in val instead of returning aValidationResulton the firstViolation. AnExecutionExceptionis thrown if evaluation fails to complete.- Throws:
ExecutionException
-