Class CompiledProgram
java.lang.Object
build.buf.protovalidate.internal.expression.CompiledProgram
-
Constructor Summary
ConstructorsConstructorDescriptionCompiledProgram(org.projectnessie.cel.Program program, Expression source) Constructs a newCompiledProgram. -
Method Summary
-
Constructor Details
-
CompiledProgram
Constructs a newCompiledProgram.- Parameters:
program- The compiled CEL program.source- The original expression that was compiled into the program.
-
-
Method Details
-
eval
@Nullable public build.buf.gen.buf.validate.Violation eval(Variable bindings) throws ExecutionException Evaluate the compiled program with a given set ofVariablebindings.- Parameters:
bindings- Variable bindings used for the evaluation.- Returns:
- The
Violationfrom the evaluation, or null if there are no violations. - Throws:
ExecutionException- If the evaluation of the CEL program fails with an error.
-