GeoKnow/Jassa-Core

View on GitHub
lib/sparql/expr/E_Cast.js

Summary

Maintainability
A
0 mins
Test Coverage
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;