LineIfThen class
Line of query text with condition.
If bool cond
is true, then String when_true
will pasted into query.
Sample:
Query([
Line('FOR doc in documents'),
LineIfThen(tag != null, 'FILTER doc.tags && POSITION( doc.tags, tag )'),
...
])
- Inheritance
-
- Object
- QueryTextFragment
- LineIfThen
Constructors
- LineIfThen(bool cond, String whenTrue)
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited