GTMatchExpression.js 643 B

1234567891011121314151617181920212223
  1. "use strict";
  2. /**
  3. * @class GTMatchExpression
  4. * @namespace mungedb-aggregate.pipeline.matcher
  5. * @module mungedb-aggregate
  6. * @constructor
  7. */
  8. var GTMatchExpression = module.exports = function GTMatchExpression(){
  9. base.call(this, "GT");
  10. }, klass = GTMatchExpression, base = require("./ComparisonMatchExpression"), proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}}); //jshint ignore:line
  11. /**
  12. * @method shallowClone
  13. */
  14. proto.shallowClone = function shallowClone(){
  15. var e = new GTMatchExpression();
  16. e.init(this.path(), this._rhs);
  17. if(this.getTag()) {
  18. e.setTag(this.getTag().clone());
  19. }
  20. return e;
  21. };