Enum CelKind

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<CelKind>

    @CheckReturnValue
    public enum CelKind
    extends java.lang.Enum<CelKind>
    The CelKind indicates the type category.

    In most cases, the type category maps to a well-defined CEL type, but there are a handful of types which are either internal or used to extend the type set natively understood by CEL.

    • Enum Constant Detail

      • UNSPECIFIED

        public static final CelKind UNSPECIFIED
      • ERROR

        public static final CelKind ERROR
      • DYN

        public static final CelKind DYN
      • ANY

        public static final CelKind ANY
      • BOOL

        public static final CelKind BOOL
      • BYTES

        public static final CelKind BYTES
      • DOUBLE

        public static final CelKind DOUBLE
      • DURATION

        public static final CelKind DURATION
      • FUNCTION

        public static final CelKind FUNCTION
      • INT

        public static final CelKind INT
      • LIST

        public static final CelKind LIST
      • MAP

        public static final CelKind MAP
      • NULL_TYPE

        public static final CelKind NULL_TYPE
      • OPAQUE

        public static final CelKind OPAQUE
      • STRING

        public static final CelKind STRING
      • STRUCT

        public static final CelKind STRUCT
      • TIMESTAMP

        public static final CelKind TIMESTAMP
      • TYPE

        public static final CelKind TYPE
      • TYPE_PARAM

        public static final CelKind TYPE_PARAM
      • UINT

        public static final CelKind UINT
    • Method Detail

      • values

        public static CelKind[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CelKind c : CelKind.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CelKind valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • isDyn

        public boolean isDyn()
      • isTypeParam

        public boolean isTypeParam()
      • isError

        public boolean isError()
      • isPrimitive

        public boolean isPrimitive()