lib/sparql/expr/E_LogicalAnd.js
var Class = require('../../ext/Class');
var ExprHelpers = require('../ExprHelpers');
var ExprFunction2 = require('./ExprFunction2');
var E_LogicalAnd = Class.create(ExprFunction2, {
initialize: function($super, left, right) {
$super('&&', left, right);
},
copySubstitute: function(fnNodeMap) {
return new E_LogicalAnd(this.left.copySubstitute(fnNodeMap), this.right.copySubstitute(fnNodeMap));
},
copy: function(args) {
return ExprHelpers.newBinaryExpr(E_LogicalAnd, args);
},
toString: function() {
return '(' + this.left + ' && ' + this.right + ')';
},
});
module.exports = E_LogicalAnd;