lib/sparql/expr/E_Cast.js
var Class = require('../../ext/Class');
/*
* TODO ECast should be removed -
* a cast expression should be modeled as a function taking a single argument which is the value to cast.
*
*/
var E_Cast = Class.create({
initialize: function(expr, node) {
this.expr = expr;
this.node = node;
},
copySubstitute: function(fnNodeMap) {
return new E_Cast(this.expr.copySubstitute(fnNodeMap), this.node.copySubstitute(fnNodeMap));
},
});
module.exports = E_Cast;