Package dev.cel.checker
Class CelIdentDecl
- java.lang.Object
-
- dev.cel.checker.CelIdentDecl
-
@Immutable @Internal public abstract class CelIdentDecl extends java.lang.Object
Abstract representation of a CEL identifier declaration.CEL Library Internals. Do Not Use.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCelIdentDecl.BuilderBuilder for configuring theCelIdentDecl.
-
Constructor Summary
Constructors Constructor Description CelIdentDecl()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static DeclcelIdentToDecl(CelIdentDecl identDecl)Converts aCelIdentDeclto a protobuf equivalent formDeclabstract java.util.Optional<CelConstant>constant()The constant value of the identifier.abstract java.lang.Stringdoc()Documentation string for the identifier.abstract java.lang.Stringname()Fully qualified variable name.static CelIdentDecl.BuildernewBuilder()static CelIdentDeclnewIdentDeclaration(java.lang.String name, CelType type)Create a newCelIdentDeclwith a givennameandtype.abstract CelTypetype()The type of the variable.
-
-
-
Method Detail
-
name
public abstract java.lang.String name()
Fully qualified variable name.
-
type
public abstract CelType type()
The type of the variable.
-
constant
public abstract java.util.Optional<CelConstant> constant()
The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.
-
doc
public abstract java.lang.String doc()
Documentation string for the identifier.
-
celIdentToDecl
public static Decl celIdentToDecl(CelIdentDecl identDecl)
Converts aCelIdentDeclto a protobuf equivalent formDecl
-
newIdentDeclaration
@CheckReturnValue public static CelIdentDecl newIdentDeclaration(java.lang.String name, CelType type)
Create a newCelIdentDeclwith a givennameandtype.
-
newBuilder
public static CelIdentDecl.Builder newBuilder()
-
-