Class CelRuntime.Program

  • Enclosing interface:
    CelRuntime

    @Immutable
    public abstract static class CelRuntime.Program
    extends java.lang.Object
    Creates an evaluable Program instance which is thread-safe and immutable.
    • Constructor Summary

      Constructors 
      Constructor Description
      Program()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object advanceEvaluation​(UnknownContext context)
      Advance evaluation based on the current unknown context.
      java.lang.Object eval()
      Evaluate the expression without any variables.
      java.lang.Object eval​(Message message)
      Evaluate the expression using message fields as the source of input variables.
      java.lang.Object eval​(CelVariableResolver resolver)
      Evaluate a compiled program with a custom variable resolver.
      java.lang.Object eval​(java.util.Map<java.lang.String,​?> mapValue)
      Evaluate the expression using a mapValue as the source of input variables.
      java.lang.Object trace​(Message message, CelEvaluationListener listener)
      Trace evaluates a compiled program using message fields as the source of input variables.
      java.lang.Object trace​(CelEvaluationListener listener)
      Trace evaluates a compiled program without any variables and invokes the listener as evaluation progresses through the AST.
      java.lang.Object trace​(CelVariableResolver resolver, CelEvaluationListener listener)
      Trace evaluates a compiled program using a custom variable resolver.
      java.lang.Object trace​(java.util.Map<java.lang.String,​?> mapValue, CelEvaluationListener listener)
      Trace evaluates a compiled program using a mapValue as the source of input variables.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait