Interface Program

  • All Known Subinterfaces:
    CelRuntime.Program
    All Known Implementing Classes:
    PlannedProgram

    @Immutable
    public interface 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 eval()
      Evaluate the expression without any variables.
      java.lang.Object eval​(CelVariableResolver resolver)
      Evaluate a compiled program with a custom variable resolver.
      java.lang.Object eval​(CelVariableResolver resolver, CelFunctionResolver lateBoundFunctionResolver)
      Evaluate a compiled program with a custom variable resolver and late-bound functions lateBoundFunctionResolver.
      java.lang.Object eval​(PartialVars partialVars)
      Evaluate a compiled program with unknown attribute patterns partialVars.
      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 eval​(java.util.Map<java.lang.String,​?> mapValue, CelFunctionResolver lateBoundFunctionResolver)
      Evaluate a compiled program with mapValue and late-bound functions lateBoundFunctionResolver.