|
|
@@ -1,32 +1,12 @@
|
|
|
-"use strict"
|
|
|
+"use strict";
|
|
|
|
|
|
+var MatchExpression = require('./MatchExpression');
|
|
|
|
|
|
|
|
|
// Autogenerated by cport.py on 2013-09-17 14:37
|
|
|
-var FalseMatchExpression = module.exports = function (){
|
|
|
-
|
|
|
-}, klass = FalseMatchExpression, base = Object , proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}});
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-/**
|
|
|
- *
|
|
|
- * This documentation was automatically generated. Please update when you touch this function.
|
|
|
- * @method FalseMatchExpression
|
|
|
- * @param
|
|
|
- *
|
|
|
- */
|
|
|
-proto.FalseMatchExpression = function FalseMatchExpression( /* ALWAYS_FALSE */ ){
|
|
|
-// File: expression.h lines: 206-205
|
|
|
-// FalseMatchExpression() : MatchExpression( ALWAYS_FALSE ){}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-}
|
|
|
-
|
|
|
+var FalseMatchExpression = module.exports = function FalseMatchExpression(){
|
|
|
+ this._matchType = 'ALWAYS_FALSE';
|
|
|
+}, klass = FalseMatchExpression, base = MatchExpression, proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}});
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
@@ -35,17 +15,10 @@ proto.FalseMatchExpression = function FalseMatchExpression( /* ALWAYS_FALSE */
|
|
|
* @param
|
|
|
*
|
|
|
*/
|
|
|
-proto.debugString = function debugString( /* StringBuilder& debug, int level */ ){
|
|
|
-
|
|
|
+proto.debugString = function debugString( level ) { // StringBuilder& debug, int level
|
|
|
// File: expression.cpp lines: 53-55
|
|
|
-// void FalseMatchExpression::debugString( StringBuilder& debug, int level ) const {
|
|
|
-// _debugAddSpace( debug, level );
|
|
|
-// debug << "$false\n";
|
|
|
-// }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-}
|
|
|
+ return this._debugAddSpace( level ) + "$false\n";
|
|
|
+};
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -55,16 +28,10 @@ proto.debugString = function debugString( /* StringBuilder& debug, int level *
|
|
|
* @param
|
|
|
*
|
|
|
*/
|
|
|
-proto.equivalent = function equivalent( /* const MatchExpression* other */ ){
|
|
|
+proto.equivalent = function equivalent( other ) { // const MatchExpression* other
|
|
|
// File: expression.h lines: 222-223
|
|
|
-// virtual bool equivalent( const MatchExpression* other ) const {
|
|
|
-// return other->matchType() == ALWAYS_FALSE;
|
|
|
-// }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-}
|
|
|
+ return other._matchType = 'ALWAYS_FALSE';
|
|
|
+};
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -74,16 +41,10 @@ proto.equivalent = function equivalent( /* const MatchExpression* other */ ){
|
|
|
* @param
|
|
|
*
|
|
|
*/
|
|
|
-proto.matches = function matches( /* const MatchableDocument* doc, MatchDetails* details = 0 */ ){
|
|
|
+proto.matches = function matches( doc,details ) { // const MatchableDocument* doc, MatchDetails* details = 0
|
|
|
// File: expression.h lines: 208-209
|
|
|
-// virtual bool matches( const MatchableDocument* doc, MatchDetails* details = 0 ) const {
|
|
|
-// return false;
|
|
|
-// }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-}
|
|
|
+ return false;
|
|
|
+};
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -93,16 +54,10 @@ proto.matches = function matches( /* const MatchableDocument* doc, MatchDetails
|
|
|
* @param
|
|
|
*
|
|
|
*/
|
|
|
-proto.matchesSingleElement = function matchesSingleElement( /* const BSONElement& e */ ){
|
|
|
+proto.matchesSingleElement = function matchesSingleElement( e ) { // const BSONElement& e
|
|
|
// File: expression.h lines: 212-213
|
|
|
-// virtual bool matchesSingleElement( const BSONElement& e ) const {
|
|
|
-// return false;
|
|
|
-// }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-}
|
|
|
+ return false;
|
|
|
+};
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -114,11 +69,6 @@ proto.matchesSingleElement = function matchesSingleElement( /* const BSONElemen
|
|
|
*/
|
|
|
proto.shallowClone = function shallowClone( /* */ ){
|
|
|
// File: expression.h lines: 216-217
|
|
|
-// virtual MatchExpression* shallowClone() const {
|
|
|
-// return new FalseMatchExpression();
|
|
|
-// }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ return new FalseMatchExpression();
|
|
|
+};
|
|
|
|
|
|
-}
|