Class CelIdentDecl


  • @Immutable
    @Internal
    public abstract class CelIdentDecl
    extends java.lang.Object
    Abstract representation of a CEL identifier declaration.

    CEL Library Internals. Do Not Use.

    • Constructor Summary

      Constructors 
      Constructor Description
      CelIdentDecl()  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      static dev.cel.expr.Decl celIdentToDecl​(CelIdentDecl identDecl)
      Converts a CelIdentDecl to a protobuf equivalent form Decl
      abstract java.util.Optional<dev.cel.common.ast.CelConstant> constant()
      The constant value of the identifier.
      abstract java.lang.String doc()
      Documentation string for the identifier.
      abstract java.lang.String name()
      Fully qualified variable name.
      static CelIdentDecl.Builder newBuilder()  
      static CelIdentDecl newIdentDeclaration​(java.lang.String name, dev.cel.common.types.CelType type)
      Create a new CelIdentDecl with a given name and type.
      abstract dev.cel.common.types.CelType type()
      The type of the variable.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CelIdentDecl

        public CelIdentDecl()
    • Method Detail

      • name

        public abstract java.lang.String name()
        Fully qualified variable name.
      • type

        public abstract dev.cel.common.types.CelType type()
        The type of the variable.
      • constant

        public abstract java.util.Optional<dev.cel.common.ast.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 dev.cel.expr.Decl celIdentToDecl​(CelIdentDecl identDecl)
        Converts a CelIdentDecl to a protobuf equivalent form Decl
      • newIdentDeclaration

        @CheckReturnValue
        public static CelIdentDecl newIdentDeclaration​(java.lang.String name,
                                                       dev.cel.common.types.CelType type)
        Create a new CelIdentDecl with a given name and type.