Class FunctionExpression


  • public class FunctionExpression
    extends Expression
    Since:
    2.1
    • Constructor Detail

      • FunctionExpression

        public FunctionExpression​(String body,
                                  List<Expression> args)
        Creates the new expression
        Parameters:
        body - the function definition
        args - the funcation arguments
        Developer note.
        This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
    • Method Detail

      • encode

        public void encode​(Mapper mapper,
                           org.bson.BsonWriter writer,
                           org.bson.codecs.EncoderContext encoderContext)
        Overrides:
        encode in class Expression
        Parameters:
        mapper - the mapper
        writer - the writer
        encoderContext - the context