Class MathExpression


  • public class MathExpression
    extends Expression
    Base class for the math expressions
    Since:
    2.0
    • Constructor Detail

      • MathExpression

        public MathExpression​(String operation,
                              List<Expression> operands)
        Parameters:
        operation -
        operands -
        Developer note.
        This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
      • MathExpression

        public MathExpression​(String operation,
                              Expression operand)
        Parameters:
        operation -
        operand -
        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