Package dev.cel.runtime
Class CelResolvedOverload
- java.lang.Object
-
- dev.cel.runtime.CelResolvedOverload
-
@Immutable @Internal public abstract class CelResolvedOverload extends java.lang.ObjectRepresentation of a function overload which has been resolved to a specific set of argument types and a function definition.
-
-
Constructor Summary
Constructors Constructor Description CelResolvedOverload()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract CelFunctionOverloadgetDefinition()The function definition.abstract java.lang.StringgetFunctionName()The base function name.abstract java.lang.StringgetOverloadId()The overload id of the function.abstract com.google.common.collect.ImmutableList<java.lang.Class<?>>getParameterTypes()The types of the function parameters.java.lang.Objectinvoke(java.lang.Object arg)java.lang.Objectinvoke(java.lang.Object[] args)java.lang.Objectinvoke(java.lang.Object arg1, java.lang.Object arg2)abstract booleanisStrict()static CelResolvedOverloadof(java.lang.String functionName, java.lang.String overloadId, CelFunctionOverload definition, boolean isStrict, java.lang.Class<?>... parameterTypes)Creates a new resolved overload from the given function name, overload id, parameter types, and definition.static CelResolvedOverloadof(java.lang.String functionName, java.lang.String overloadId, CelFunctionOverload definition, boolean isStrict, java.util.List<java.lang.Class<?>> parameterTypes)Creates a new resolved overload from the given function name, overload id, parameter types, and definition.
-
-
-
Method Detail
-
getFunctionName
public abstract java.lang.String getFunctionName()
The base function name.
-
getOverloadId
public abstract java.lang.String getOverloadId()
The overload id of the function.
-
getParameterTypes
public abstract com.google.common.collect.ImmutableList<java.lang.Class<?>> getParameterTypes()
The types of the function parameters.
-
isStrict
public abstract boolean isStrict()
-
getDefinition
public abstract CelFunctionOverload getDefinition()
The function definition.
-
invoke
public java.lang.Object invoke(java.lang.Object[] args) throws CelEvaluationException- Throws:
CelEvaluationException
-
invoke
public java.lang.Object invoke(java.lang.Object arg) throws CelEvaluationException- Throws:
CelEvaluationException
-
invoke
public java.lang.Object invoke(java.lang.Object arg1, java.lang.Object arg2) throws CelEvaluationException- Throws:
CelEvaluationException
-
of
public static CelResolvedOverload of(java.lang.String functionName, java.lang.String overloadId, CelFunctionOverload definition, boolean isStrict, java.lang.Class<?>... parameterTypes)
Creates a new resolved overload from the given function name, overload id, parameter types, and definition.
-
of
public static CelResolvedOverload of(java.lang.String functionName, java.lang.String overloadId, CelFunctionOverload definition, boolean isStrict, java.util.List<java.lang.Class<?>> parameterTypes)
Creates a new resolved overload from the given function name, overload id, parameter types, and definition.
-
-