Class CelValueConverter


  • @Internal
    @Immutable
    public class CelValueConverter
    extends java.lang.Object
    CelValueConverter handles bidirectional conversion between native Java objects to CelValue.

    CEL Library Internals. Do Not Use.

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected CelValueConverter()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static CelValueConverter getDefaultInstance()  
      protected java.lang.Object mapContainer​(java.lang.Object value, java.util.function.Function<java.lang.Object,​java.lang.Object> mapper)
      Maps a container (Collection or Map) by applying the provided mapper function to its elements.
      java.lang.Object maybeUnwrap​(java.lang.Object value)
      Unwraps the value into its plain old Java Object representation.
      protected java.lang.Object normalizePrimitive​(java.lang.Object value)  
      java.lang.Object toRuntimeValue​(java.lang.Object value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CelValueConverter

        protected CelValueConverter()
    • Method Detail

      • maybeUnwrap

        public java.lang.Object maybeUnwrap​(java.lang.Object value)
        Unwraps the value into its plain old Java Object representation.

        The value may be a CelValue, a Collection or a Map.

      • mapContainer

        protected java.lang.Object mapContainer​(java.lang.Object value,
                                                java.util.function.Function<java.lang.Object,​java.lang.Object> mapper)
        Maps a container (Collection or Map) by applying the provided mapper function to its elements. Returns the original value if it's not a supported container.
      • toRuntimeValue

        public java.lang.Object toRuntimeValue​(java.lang.Object value)
      • normalizePrimitive

        protected java.lang.Object normalizePrimitive​(java.lang.Object value)