LTEMatchExpression.js 723 B

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