Package dev.cel.common.values
Class StringValue
- java.lang.Object
-
- dev.cel.common.values.CelValue
-
- dev.cel.common.values.StringValue
-
@Immutable public abstract class StringValue extends CelValue
StringValue is a simple CelValue wrapper around Java strings.
-
-
Constructor Summary
Constructors Constructor Description StringValue()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description CelType
celType()
The CelType that represents this value.static StringValue
create(java.lang.String value)
boolean
isZeroValue()
Returns true if theCelValue.value()
is a zero value for its type.abstract java.lang.String
value()
The underlying value.
-
-
-
Method Detail
-
value
public abstract java.lang.String value()
Description copied from class:CelValue
The 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:CelValue
Returns true if theCelValue.value()
is a zero value for its type.- Specified by:
isZeroValue
in classCelValue
-
celType
public CelType celType()
Description copied from class:CelValue
The CelType that represents this value.
-
create
public static StringValue create(java.lang.String value)
-
-