Package dev.cel.common.ast
Enum CelConstant.Kind
- java.lang.Object
-
- java.lang.Enum<CelConstant.Kind>
-
- dev.cel.common.ast.CelConstant.Kind
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CelConstant.Kind>
- Enclosing class:
- CelConstant
public static enum CelConstant.Kind extends java.lang.Enum<CelConstant.Kind>
Represents the type of the Constant
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEAN_VALUEBYTES_VALUEDOUBLE_VALUEDURATION_VALUEDeprecated.Do not use.INT64_VALUENULL_VALUESTRING_VALUETIMESTAMP_VALUEDeprecated.Do not use.UINT64_VALUE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CelConstant.KindvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CelConstant.Kind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NULL_VALUE
public static final CelConstant.Kind NULL_VALUE
-
BOOLEAN_VALUE
public static final CelConstant.Kind BOOLEAN_VALUE
-
INT64_VALUE
public static final CelConstant.Kind INT64_VALUE
-
UINT64_VALUE
public static final CelConstant.Kind UINT64_VALUE
-
DOUBLE_VALUE
public static final CelConstant.Kind DOUBLE_VALUE
-
STRING_VALUE
public static final CelConstant.Kind STRING_VALUE
-
BYTES_VALUE
public static final CelConstant.Kind BYTES_VALUE
-
TIMESTAMP_VALUE
@Deprecated public static final CelConstant.Kind TIMESTAMP_VALUE
Deprecated.Do not use. Timestamp is no longer built-in CEL type.
-
DURATION_VALUE
@Deprecated public static final CelConstant.Kind DURATION_VALUE
Deprecated.Do not use. Duration is no longer built-in CEL type.
-
-
Method Detail
-
values
public static CelConstant.Kind[] 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 (CelConstant.Kind c : CelConstant.Kind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CelConstant.Kind 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 namejava.lang.NullPointerException- if the argument is null
-
-