Package dev.cel.runtime.standard
Class TypeFunction
- java.lang.Object
-
- dev.cel.runtime.standard.CelStandardFunction
-
- dev.cel.runtime.standard.TypeFunction
-
public final class TypeFunction extends CelStandardFunction
Standard function for thetypefunction.The
typefunction returns the CEL type of its argument. It accepts aTypeResolverso that different runtimes can supply the appropriate resolver (e.g. a descriptor-based resolver for full proto, or a base resolver for lite proto).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTypeFunction.TypeOverloadOverloads for the standardtypefunction.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TypeFunctioncreate(TypeResolver typeResolver)com.google.common.collect.ImmutableSet<CelFunctionBinding>newFunctionBindings(dev.cel.common.CelOptions celOptions, RuntimeEquality runtimeEquality)
-
-
-
Method Detail
-
create
public static TypeFunction create(TypeResolver typeResolver)
-
newFunctionBindings
public com.google.common.collect.ImmutableSet<CelFunctionBinding> newFunctionBindings(dev.cel.common.CelOptions celOptions, RuntimeEquality runtimeEquality)
- Overrides:
newFunctionBindingsin classCelStandardFunction
-
-