Class CelPrograms
java.lang.Object
build.buf.protovalidate.internal.expression.CelPrograms
- All Implemented Interfaces:
Evaluator
Evaluator that executes a
CompiledProgram.-
Constructor Summary
ConstructorsConstructorDescriptionCelPrograms(List<CompiledProgram> compiledPrograms) Constructs a newCelPrograms. -
Method Summary
Modifier and TypeMethodDescriptionChecks that the provided val is valid.booleanReturns true if the evaluator always succeeds.
-
Constructor Details
-
CelPrograms
Constructs a newCelPrograms.
-
-
Method Details
-
tautology
public boolean tautology()Description copied from interface:EvaluatorReturns true if the evaluator always succeeds. -
evaluate
Description copied from interface:EvaluatorChecks 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.- Specified by:
evaluatein interfaceEvaluator- Throws:
ExecutionException
-