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 Detail

      • CelIdentDecl

        public CelIdentDecl()
    • 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.
      • newIdentDeclaration

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