AtomicMatchExpression.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. "use strict"
  2. MatchExpression = require('MatchExpression');
  3. // Autogenerated by cport.py on 2013-09-17 14:37
  4. var AtomicMatchExpression = module.exports = function AtomicMatchExpression(){
  5. this._matchType = 'ATOMIC';
  6. }, klass = AtomicMatchExpression, base = MatchExpression, proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}});
  7. /**
  8. *
  9. * This documentation was automatically generated. Please update when you touch this function.
  10. * @method debugString
  11. * @param
  12. *
  13. */
  14. proto.debugString = function debugString( level ) { // StringBuilder& debug, int level
  15. // File: expression.cpp lines: 48-50
  16. return this._debugAddSpace( level ) + "$atomic\n";
  17. };
  18. /**
  19. *
  20. * This documentation was automatically generated. Please update when you touch this function.
  21. * @method equivalent
  22. * @param
  23. *
  24. */
  25. proto.equivalent = function equivalent( other ) { // const MatchExpression* other
  26. // File: expression.h lines: 198-199
  27. return other._matchType == 'ATOMIC';
  28. };
  29. /**
  30. *
  31. * This documentation was automatically generated. Please update when you touch this function.
  32. * @method matches
  33. * @param
  34. *
  35. */
  36. proto.matches = function matches( doc ) { // const MatchableDocument* doc, MatchDetails* details = 0
  37. // File: expression.h lines: 184-185
  38. return true;
  39. };
  40. /**
  41. *
  42. * This documentation was automatically generated. Please update when you touch this function.
  43. * @method matchesSingleElement
  44. * @param
  45. *
  46. */
  47. proto.matchesSingleElement = function matchesSingleElement( e ) { // const BSONElement& e
  48. // File: expression.h lines: 188-189
  49. return true;
  50. };
  51. /**
  52. *
  53. * This documentation was automatically generated. Please update when you touch this function.
  54. * @method shallowClone
  55. * @param
  56. *
  57. */
  58. proto.shallowClone = function shallowClone( /* */ ){
  59. // File: expression.h lines: 192-193
  60. return new AtomicMatchExpression();
  61. };