Package dev.cel.common.values
Interface CelValueProvider
-
- All Known Implementing Classes:
CelValueProvider.CombinedCelValueProvider,ProtoMessageValueProvider
@Immutable public interface CelValueProviderCelValueProvider is an interface for constructing new struct values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCelValueProvider.CombinedCelValueProviderTheCelValueProvider.CombinedCelValueProvidertakes one or moreCelValueProviderinstances and attempts to create aCelValueinstance for a given struct type name by calling each value provider in the order that they are provided to the constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<CelValue>newValue(java.lang.String structType, java.util.Map<java.lang.String,java.lang.Object> fields)Constructs a new struct value.
-
-
-
Method Detail
-
newValue
java.util.Optional<CelValue> newValue(java.lang.String structType, java.util.Map<java.lang.String,java.lang.Object> fields)
Constructs a new struct value.Note that the return type is defined as CelValue rather than StructValue to account for special cases such as wrappers where its primitive is returned.
-
-