Class ExpressionHelper


  • public final class ExpressionHelper
    extends Object
    Since:
    2.1
    Developer note.
    This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
    • Method Detail

      • array

        public static void array​(org.bson.BsonWriter writer,
                                 Runnable body)
      • array

        public static void array​(org.bson.BsonWriter writer,
                                 String name,
                                 Runnable body)
      • document

        public static void document​(org.bson.BsonWriter writer,
                                    Runnable body)
      • document

        public static void document​(org.bson.BsonWriter writer,
                                    String name,
                                    Runnable body)
      • document

        public static org.bson.Document document​(Mapper mapper,
                                                 org.bson.Document seed,
                                                 Consumer<org.bson.BsonWriter> body)
      • expression

        public static void expression​(Mapper mapper,
                                      org.bson.BsonWriter writer,
                                      String name,
                                      @Nullable
                                      Expression expression,
                                      org.bson.codecs.EncoderContext encoderContext)
        Parameters:
        mapper -
        writer -
        name -
        expression -
        encoderContext -
        Developer note.
        This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
      • expression

        public static void expression​(Mapper mapper,
                                      org.bson.BsonWriter writer,
                                      @Nullable
                                      Expression expression,
                                      org.bson.codecs.EncoderContext encoderContext)
        Parameters:
        mapper -
        writer -
        expression -
        encoderContext -
        Developer note.
        This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
      • value

        public static void value​(Mapper mapper,
                                 org.bson.BsonWriter writer,
                                 String name,
                                 @Nullable
                                 Object value,
                                 org.bson.codecs.EncoderContext encoderContext)
        Parameters:
        mapper -
        writer -
        name -
        value -
        encoderContext -
        Developer note.
        This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
      • value

        public static void value​(Mapper mapper,
                                 org.bson.BsonWriter writer,
                                 @Nullable
                                 Object value,
                                 org.bson.codecs.EncoderContext encoderContext)
        Parameters:
        mapper -
        writer -
        value -
        encoderContext -
        Developer note.
        This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.