EqualityMatchExpression.js 733 B

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