FalseMatchExpression.js 1.9 KB

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