Package dev.cel.runtime
Interface CelEvaluationListener
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface @ThreadSafe public interface CelEvaluationListenerFunctional interface for a callback method invoked by the runtime. Implementations must ensure that its instances are unconditionally thread-safe.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcallback(CelExpr expr, java.lang.Object evaluatedResult)Callback method invoked by the CEL runtime as evaluation progresses through the AST.static CelEvaluationListenernoOpListener()Construct a listener that does nothing.
-
-
-
Method Detail
-
callback
void callback(CelExpr expr, java.lang.Object evaluatedResult)
Callback method invoked by the CEL runtime as evaluation progresses through the AST.- Parameters:
expr- CelExpr that was evaluated to produce the evaluated result.evaluatedResult- Evaluated result.
-
noOpListener
static CelEvaluationListener noOpListener()
Construct a listener that does nothing.
-
-