CompoundBsonNode
A compound expression is an BsonNode that may have children.
A compound expression may have 0..n children. Children are added by calling the accept function.
This is also the supertype for all DSL scopes, since DSL scopes correspond to the ability to add children to an expression.
Implementation notes
Prefer implementing AbstractCompoundBsonNode instead of implementing this interface directly.
Inheritors
Functions
Link copied to clipboard
Adds a new node as a child of this one.
Link copied to clipboard
Adds any number of nodes into this one.
Link copied to clipboard
Makes this expression immutable.
Link copied to clipboard
Returns a simplified (but equivalent) expression to the current expression.
Link copied to clipboard
Writes the result of simplifying to a new BSON document.
Link copied to clipboard
Writes the result of simplifying this expression into writer.