lib/sparql/expr/E_LogicalNot.js
var Class = require('../../ext/Class');
var ExprHelpers = require('../ExprHelpers');
var ExprFunction1 = require('./ExprFunction1');
var E_LogicalNot = Class.create(ExprFunction1, {
initialize: function(expr) {
this.expr = expr;
},
copySubstitute: function(fnNodeMap) {
return new E_LogicalNot(this.expr.copySubstitute(fnNodeMap));
},
getArgs: function() {
return [
this.expr,
];
},
copy: function(args) {
var result = ExprHelpers.newUnaryExpr(E_LogicalNot, args);
return result;
},
toString: function() {
return '(!' + this.expr + ')';
},
});
module.exports = E_LogicalNot;