Package dev.cel.runtime
Class CelRuntime.CelFunctionBinding
- java.lang.Object
-
- dev.cel.runtime.CelRuntime.CelFunctionBinding
-
- Enclosing interface:
- CelRuntime
@Immutable public abstract static class CelRuntime.CelFunctionBinding extends java.lang.ObjectBinding consisting of an overload id, a Java-native argument signature, and an overload definition.While the CEL function has a human-readable
camelCasename, 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:
_ _ _ - binary member function:
Examples: string_startsWith_string, mathMax_list, lessThan_money_money
-
-
Constructor Summary
Constructors Constructor Description CelFunctionBinding()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static <T> CelRuntime.CelFunctionBindingfrom(java.lang.String overloadId, java.lang.Class<T> arg, CelFunctionOverload.Unary<T> impl)Create a unary function binding from theoverloadId,arg, andimpl.static <T1,T2>
CelRuntime.CelFunctionBindingfrom(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 theoverloadId,arg1,arg2, andimpl.static CelRuntime.CelFunctionBindingfrom(java.lang.String overloadId, java.lang.Iterable<java.lang.Class<?>> argTypes, CelFunctionOverload impl)Create a function binding from theoverloadId,argTypes, andimpl.abstract java.lang.StringgetOverloadId()
-
-
-
Method Detail
-
getOverloadId
public abstract java.lang.String getOverloadId()
-
from
public static <T> CelRuntime.CelFunctionBinding from(java.lang.String overloadId, java.lang.Class<T> arg, CelFunctionOverload.Unary<T> impl)
Create a unary function binding from theoverloadId,arg, andimpl.
-
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 theoverloadId,arg1,arg2, andimpl.
-
from
public static CelRuntime.CelFunctionBinding from(java.lang.String overloadId, java.lang.Iterable<java.lang.Class<?>> argTypes, CelFunctionOverload impl)
Create a function binding from theoverloadId,argTypes, andimpl.
-
-