AbstractValue

abstract class AbstractValue<Root : Any, Type> : Node, Value<Root, Type> (source)

Utility implementation of Value, which handles the context, toString representation and freezing.

Implementing a new operator

Implementing class is identical in concept to implementing AbstractBsonNode. The main difference is the writer is a BsonValueWriter instead of a BsonFieldWriter.

Constructors

Link copied to clipboard
constructor(context: <Error class: unknown class>)

Properties

Link copied to clipboard
open override val context: <Error class: unknown class>

The context used to generate this value.

Functions

Link copied to clipboard
open override fun freeze()

Makes this node immutable.

Link copied to clipboard
open override fun simplify(): AbstractValue<Root, Type>

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

Link copied to clipboard
override fun toString(): String
fun toString(simplified: Boolean): String

JSON representation of this expression.

Link copied to clipboard
override fun writeTo(writer: <Error class: unknown class>)

Writes the result of simplifying this value into writer.