Package dev.cel.common.values
Class NullValue
- java.lang.Object
-
- dev.cel.common.values.CelValue
-
- dev.cel.common.values.NullValue
-
@Immutable public final class NullValue extends CelValue
NullValue represents the value 'null' of 'null_type' according to the CEL specification. One of its primary uses is to represent nulls in JSON data.
-
-
Field Summary
Fields Modifier and Type Field Description static NullValueNULL_VALUESentinel value for representing NULL.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CelTypecelType()The CelType that represents this value.booleanisZeroValue()Returns true if theCelValue.value()is a zero value for its type.NullValuevalue()The underlying value.
-
-
-
Field Detail
-
NULL_VALUE
public static final NullValue NULL_VALUE
Sentinel value for representing NULL.
-
-
Method Detail
-
value
public NullValue value()
Description copied from class:CelValueThe underlying value. This is typically the Java native value or a derived instance of CelValue (ex: an element in lists or key/value pair in maps).
-
celType
public CelType celType()
Description copied from class:CelValueThe CelType that represents this value.
-
isZeroValue
public boolean isZeroValue()
Description copied from class:CelValueReturns true if theCelValue.value()is a zero value for its type.- Specified by:
isZeroValuein classCelValue
-
-