|
|
@@ -2,6 +2,7 @@
|
|
|
var MatchExpression = require('./MatchExpression');
|
|
|
|
|
|
// Autogenerated by cport.py on 2013-09-17 14:37
|
|
|
+// File: expression.h
|
|
|
var AtomicMatchExpression = module.exports = function AtomicMatchExpression(){
|
|
|
base.call(this);
|
|
|
this._matchType = 'ATOMIC';
|
|
|
@@ -15,7 +16,6 @@ var AtomicMatchExpression = module.exports = function AtomicMatchExpression(){
|
|
|
*
|
|
|
*/
|
|
|
proto.debugString = function debugString(level) {
|
|
|
- // File: expression.cpp lines: 48-50
|
|
|
return this._debugAddSpace( level ) + "$atomic\n";
|
|
|
};
|
|
|
|
|
|
@@ -27,8 +27,7 @@ proto.debugString = function debugString(level) {
|
|
|
*
|
|
|
*/
|
|
|
proto.equivalent = function equivalent(other) {
|
|
|
- // File: expression.h lines: 198-199
|
|
|
- return other._matchType == 'ATOMIC';
|
|
|
+ return other._matchType === this._matchType;
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
@@ -39,7 +38,6 @@ proto.equivalent = function equivalent(other) {
|
|
|
*
|
|
|
*/
|
|
|
proto.matches = function matches(doc) {
|
|
|
- // File: expression.h lines: 184-185
|
|
|
return true;
|
|
|
};
|
|
|
|
|
|
@@ -51,7 +49,6 @@ proto.matches = function matches(doc) {
|
|
|
*
|
|
|
*/
|
|
|
proto.matchesSingleElement = function matchesSingleElement(e) {
|
|
|
- // File: expression.h lines: 188-189
|
|
|
return true;
|
|
|
};
|
|
|
|
|
|
@@ -62,6 +59,5 @@ proto.matchesSingleElement = function matchesSingleElement(e) {
|
|
|
*
|
|
|
*/
|
|
|
proto.shallowClone = function shallowClone(){
|
|
|
- // File: expression.h lines: 192-193
|
|
|
return new AtomicMatchExpression();
|
|
|
};
|