Package dev.cel.checker
Class Env.FunctionBuilder
- java.lang.Object
-
- dev.cel.checker.Env.FunctionBuilder
-
- Enclosing class:
- Env
@Deprecated public static final class Env.FunctionBuilder extends java.lang.Object
Deprecated.UseCelFunctionDecl.newBuilder()
instead.A helper class for building declarations.
-
-
Constructor Summary
Constructors Constructor Description FunctionBuilder(java.lang.String name)
Deprecated.Create a global function builder.FunctionBuilder(java.lang.String name, boolean isInstance)
Deprecated.Create an instance function builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Env.FunctionBuilder
add(java.lang.String id, Type resultType, Type... argTypes)
Deprecated.Add an overload.Env.FunctionBuilder
add(java.lang.String id, Type resultType, java.lang.Iterable<Type> argTypes)
Deprecated.Add an overload.Env.FunctionBuilder
add(java.lang.String id, java.util.List<java.lang.String> typeParams, Type resultType, Type... argTypes)
Deprecated.Add an overload, with type params.Env.FunctionBuilder
add(java.lang.String id, java.util.List<java.lang.String> typeParams, Type resultType, java.lang.Iterable<Type> argTypes)
Deprecated.Add an overload, with type params.Decl
build()
Deprecated.Build the functionDecl
.Env.FunctionBuilder
doc(@Nullable java.lang.String value)
Deprecated.Adds documentation to the last added overload.Env.FunctionBuilder
sameAs(Decl func, java.lang.String idPart, java.lang.String idPartReplace)
Deprecated.Add the overloads of another function to this function, after replacing the overload id as specified.
-
-
-
Method Detail
-
sameAs
@CanIgnoreReturnValue public Env.FunctionBuilder sameAs(Decl func, java.lang.String idPart, java.lang.String idPartReplace)
Deprecated.Add the overloads of another function to this function, after replacing the overload id as specified.
-
add
@CanIgnoreReturnValue public Env.FunctionBuilder add(java.lang.String id, Type resultType, Type... argTypes)
Deprecated.Add an overload.
-
add
@CanIgnoreReturnValue public Env.FunctionBuilder add(java.lang.String id, Type resultType, java.lang.Iterable<Type> argTypes)
Deprecated.Add an overload.
-
add
@CanIgnoreReturnValue public Env.FunctionBuilder add(java.lang.String id, java.util.List<java.lang.String> typeParams, Type resultType, Type... argTypes)
Deprecated.Add an overload, with type params.
-
add
@CanIgnoreReturnValue public Env.FunctionBuilder add(java.lang.String id, java.util.List<java.lang.String> typeParams, Type resultType, java.lang.Iterable<Type> argTypes)
Deprecated.Add an overload, with type params.
-
doc
@CanIgnoreReturnValue public Env.FunctionBuilder doc(@Nullable java.lang.String value)
Deprecated.Adds documentation to the last added overload.
-
build
@CheckReturnValue public Decl build()
Deprecated.Build the functionDecl
.
-
-