Class AstExpression
java.lang.Object
build.buf.protovalidate.internal.expression.AstExpression
AstExpression is a compiled CEL Ast.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal org.projectnessie.cel.AstThe compiled CEL AST.final ExpressionContains the original expression from the proto file. -
Method Summary
Modifier and TypeMethodDescriptionstatic AstExpressionnewAstExpression(org.projectnessie.cel.Env env, Expression expr) Compiles the given expression to aAstExpression.
-
Field Details
-
ast
public final org.projectnessie.cel.Ast astThe compiled CEL AST. -
source
Contains the original expression from the proto file.
-
-
Method Details
-
newAstExpression
public static AstExpression newAstExpression(org.projectnessie.cel.Env env, Expression expr) throws CompilationException Compiles the given expression to aAstExpression.- Parameters:
env- The CEL environment.expr- The expression to compile.- Returns:
- The compiled
AstExpression. - Throws:
CompilationException- if the expression compilation fails.
-