Package dev.cel.common.values
Class TypeValue
- java.lang.Object
-
- dev.cel.common.values.CelValue
-
- dev.cel.common.values.TypeValue
-
@Immutable public abstract class TypeValue extends CelValue
TypeValue holds the CEL type information for the underlying CelValue.
-
-
Constructor Summary
Constructors Constructor Description TypeValue()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract TypeTypecelType()The CelType that represents this value.static TypeValuecreate(CelType value)booleanisZeroValue()Returns true if theCelValue.value()is a zero value for its type.abstract CelTypevalue()The underlying value.
-
-
-
Method Detail
-
value
public abstract CelType 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).
-
isZeroValue
public boolean isZeroValue()
Description copied from class:CelValueReturns true if theCelValue.value()is a zero value for its type.- Specified by:
isZeroValuein classCelValue
-
celType
public abstract TypeType celType()
Description copied from class:CelValueThe CelType that represents this value.
-
-