FalseMatchExpression.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. * Writes a debug string for this object
  11. * @method debugString
  12. * @param level
  13. *
  14. */
  15. proto.debugString = function debugString(level) {
  16. // File: expression.cpp lines: 53-55
  17. return this._debugAddSpace( level ) + "$false\n";
  18. };
  19. /**
  20. *
  21. * checks if this expression is == to the other
  22. * @method equivalent
  23. * @param other
  24. *
  25. */
  26. proto.equivalent = function equivalent(other) {
  27. // File: expression.h lines: 222-223
  28. return other._matchType === 'ALWAYS_FALSE';
  29. };
  30. /**
  31. *
  32. * matches checks the input doc against the internal element path to see if it is a match
  33. * @method matches
  34. * @param doc
  35. * @param details
  36. *
  37. */
  38. proto.matches = function matches(doc,details) {
  39. // File: expression.h lines: 208-209
  40. return false;
  41. };
  42. /**
  43. *
  44. * Check if the input element matches
  45. * @method matchesSingleElement
  46. * @param e
  47. *
  48. */
  49. proto.matchesSingleElement = function matchesSingleElement(e) {
  50. // File: expression.h lines: 212-213
  51. return false;
  52. };
  53. /**
  54. *
  55. * clone this instance to a new one
  56. * @method shallowClone
  57. *
  58. */
  59. proto.shallowClone = function shallowClone(){
  60. // File: expression.h lines: 216-217
  61. return new FalseMatchExpression();
  62. };