EqualityMatchExpression.js 643 B

12345678910111213141516171819202122
  1. "use strict";
  2. var EqualityMatchExpression = module.exports = function EqualityMatchExpression(){
  3. base.call(this,"EQ");
  4. }, klass = EqualityMatchExpression, base = require("./ComparisonMatchExpression"), proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}}); //jshint ignore:line
  5. /**
  6. *
  7. * Return a new instance of this class, with fields set the same as ourself
  8. * @method shallowClone
  9. * @param
  10. *
  11. */
  12. proto.shallowClone = function shallowClone( /* */ ){
  13. var e = new EqualityMatchExpression();
  14. e.init ( this.path(), this._rhs );
  15. if ( this.getTag() ) {
  16. e.setTag(this.getTag().clone());
  17. }
  18. return e;
  19. };