Skip to content

Command

Properties

context

@LowLevelApi



abstract val context: BsonContext

The context used to generate this expression.

Functions

freeze

@LowLevelApi



abstract override fun freeze()

Makes this expression immutable.

simplify

@LowLevelApi



abstract fun simplify(): BsonNode?

Returns a simplified (but equivalent) expression to the current expression.

toBson

@LowLevelApi



open fun toBson(): Bson

Writes the result of simplifying to a new BSON document.

toString

abstract override fun toString(): String

JSON representation of this expression.

writeTo

@LowLevelApi



abstract override fun writeTo(writer: BsonFieldWriter)

Writes the result of simplifying this expression into writer.