Interface CelRuntime.Program

  • All Superinterfaces:
    Program
    Enclosing interface:
    CelRuntime

    @Immutable
    public static interface CelRuntime.Program
    extends Program
    Creates an evaluable Program instance which is thread-safe and immutable.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object advanceEvaluation​(UnknownContext context)
      Advance evaluation based on the current unknown context.
      java.lang.Object eval​(com.google.protobuf.Message message)
      Evaluate the expression using message fields as the source of input variables.
      java.lang.Object trace​(com.google.protobuf.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​(CelVariableResolver resolver, CelFunctionResolver lateBoundFunctionResolver, CelEvaluationListener listener)
      Trace evaluates a compiled program using a custom variable resolver and late-bound functions lateBoundFunctionResolver.
      java.lang.Object trace​(PartialVars partialVars, CelEvaluationListener listener)
      Trace evaluates a compiled program using partialVars as the source of input variables and unknown attribute patterns.
      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.
      java.lang.Object trace​(java.util.Map<java.lang.String,​?> mapValue, CelFunctionResolver lateBoundFunctionResolver, CelEvaluationListener listener)
      Trace evaluates a compiled program using a mapValue as the source of input variables and late-bound functions lateBoundFunctionResolver.