Package dev.cel.common
Class CelFunctionDecl
- java.lang.Object
-
- dev.cel.common.CelFunctionDecl
-
@Immutable public abstract class CelFunctionDecl extends java.lang.Object
Abstract representation of a CEL Function declaration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CelFunctionDecl.Builder
Builder for configuring theCelFunctionDecl
.
-
Constructor Summary
Constructors Constructor Description CelFunctionDecl()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Decl
celFunctionDeclToDecl(CelFunctionDecl celFunctionDecl)
Converts aCelFunctionDecl
to a protobuf equivalent formDecl.FunctionDecl
abstract java.lang.String
name()
Fully qualified name of the function.static CelFunctionDecl.Builder
newBuilder()
Create a new builder to construct aCelFunctionDecl
instance.static CelFunctionDecl
newFunctionDeclaration(java.lang.String functionName, CelOverloadDecl... overloads)
Constructs a function declaration with any number ofCelOverloadDecl
static CelFunctionDecl
newFunctionDeclaration(java.lang.String functionName, java.lang.Iterable<CelOverloadDecl> overloads)
Constructs a function declaration with an iterable ofCelOverloadDecl
abstract com.google.common.collect.ImmutableList<CelOverloadDecl>
overloads()
Required.abstract CelFunctionDecl.Builder
toBuilder()
-
-
-
Method Detail
-
name
public abstract java.lang.String name()
Fully qualified name of the function.
-
overloads
public abstract com.google.common.collect.ImmutableList<CelOverloadDecl> overloads()
Required. List of function overloads. Must contain at least one overload.
-
toBuilder
public abstract CelFunctionDecl.Builder toBuilder()
-
newBuilder
public static CelFunctionDecl.Builder newBuilder()
Create a new builder to construct aCelFunctionDecl
instance.
-
newFunctionDeclaration
public static CelFunctionDecl newFunctionDeclaration(java.lang.String functionName, CelOverloadDecl... overloads)
Constructs a function declaration with any number ofCelOverloadDecl
-
newFunctionDeclaration
public static CelFunctionDecl newFunctionDeclaration(java.lang.String functionName, java.lang.Iterable<CelOverloadDecl> overloads)
Constructs a function declaration with an iterable ofCelOverloadDecl
-
celFunctionDeclToDecl
@Internal public static Decl celFunctionDeclToDecl(CelFunctionDecl celFunctionDecl)
Converts aCelFunctionDecl
to a protobuf equivalent formDecl.FunctionDecl
-
-