2020-05-17 19:43:37 +02:00
|
|
|
"use strict";
|
|
|
|
|
2023-11-22 19:34:48 +01:00
|
|
|
const Expression = require('./expression.js');
|
2020-05-22 09:38:30 +02:00
|
|
|
|
|
|
|
class NotExp extends Expression {
|
2020-05-17 19:43:37 +02:00
|
|
|
constructor(subExpression) {
|
2020-05-22 09:38:30 +02:00
|
|
|
super();
|
|
|
|
|
2020-05-17 19:43:37 +02:00
|
|
|
this.subExpression = subExpression;
|
|
|
|
}
|
|
|
|
|
2022-12-17 13:07:42 +01:00
|
|
|
execute(inputNoteSet, executionContext, searchContext) {
|
|
|
|
const subNoteSet = this.subExpression.execute(inputNoteSet, executionContext, searchContext);
|
2020-05-17 19:43:37 +02:00
|
|
|
|
2020-05-23 12:27:44 +02:00
|
|
|
return inputNoteSet.minus(subNoteSet);
|
2020-05-17 19:43:37 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = NotExp;
|