Class CelRuntime.CelFunctionBinding

  • Enclosing interface:
    CelRuntime

    @Immutable
    public abstract static class CelRuntime.CelFunctionBinding
    extends java.lang.Object
    Binding consisting of an overload id, a Java-native argument signature, and an overload definition.

    While the CEL function has a human-readable camelCase name, overload ids should use the following convention where all <type> names should be ASCII lower-cased. For types prefer the unparameterized simple name of time, or unqualified package name of any proto-based type:

    • unary member function: _
    • binary member function: __
    • unary global function: _
    • binary global function: __
    • global function: ___

    Examples: string_startsWith_string, mathMax_list, lessThan_money_money

    • Constructor Detail

      • CelFunctionBinding

        public CelFunctionBinding()
    • Method Detail

      • getOverloadId

        public abstract java.lang.String getOverloadId()
      • from

        public static <T1,​T2> CelRuntime.CelFunctionBinding from​(java.lang.String overloadId,
                                                                       java.lang.Class<T1> arg1,
                                                                       java.lang.Class<T2> arg2,
                                                                       CelFunctionOverload.Binary<T1,​T2> impl)
        Create a binary function binding from the overloadId, arg1, arg2, and impl.