OperatorCall class final

Everything an operator needs in order to parse itself.

A record rather than five positional parameters, because two of them are rarely used and an operator table is something people extend.

Annotations
  • @immutable

Constructors

OperatorCall({required String name, required Object? value, required MongoQueryParser parser, String? field, Map<String, Object?> siblings = const {}})
Creates the call.
const

Properties

field String?
The field being described, or null at the top level.
final
hashCode int
The hash code for this object.
no setterinherited
name String
The operator as written, $gte and so on.
final
parser MongoQueryParser
For operators that contain a nested query, such as $elemMatch.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
siblings Map<String, Object?>
The other keys beside it. $regex reads $options from here.
final
value Object?
What it was given.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refuse(String message) Condition
Refuses the value this operator was given, honouring the parser's MongoQueryParser.onUnparsableCondition.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited