| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 | 
							- "use strict";
 
- var ListOfMatchExpression = require('./ListOfMatchExpression');
 
- 	// Autogenerated by cport.py on 2013-09-17 14:37
 
- var OrMatchExpression = module.exports = function OrMatchExpression (){
 
- 	base.call(this);
 
- 	this._expressions = [];
 
- 	this._matchType = 'OR';
 
- }, klass = OrMatchExpression, base = ListOfMatchExpression, proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}});
 
- /**
 
-  *
 
-  * Writes a debug string for this object
 
-  * @method debugString
 
-  * @param level
 
-  *
 
-  */
 
- proto.debugString = function debugString(level) {
 
- 	// File: expression_tree.cpp lines: 112-115
 
- 	return this._debugAddSpace( level ) + "$or\n" + this._debugList( level );
 
- };
 
- /**
 
-  *
 
-  * matches checks the input doc against the internal element path to see if it is a match
 
-  * @method matches
 
-  * @param doc
 
-  * @param details
 
-  *
 
-  */
 
- proto.matches = function matches(doc,details) {
 
- 	// File: expression_tree.cpp lines: 93-99
 
- 	for (var i = 0; i < this.numChildren(); i++) {
 
- 		if (this.getChild(i).matches( doc, null ) ){
 
- 			return true;
 
- 		}
 
- 	}
 
- 	return false;
 
- };
 
- /**
 
-  *
 
-  * Check if the input element matches
 
-  * @method matchesSingleElement
 
-  * @param e
 
-  *
 
-  */
 
- proto.matchesSingleElement = function matchesSingleElement(e) {
 
- 	// File: expression_tree.cpp lines: 102-108
 
- 	for (var i = 0; i < this.numChildren(); i++) {
 
- 		if( this.getChild(i).matchesSingleElement(e) ) {
 
- 			return true;
 
- 		}
 
- 	}
 
- 	return false;
 
- };
 
- /**
 
-  *
 
-  * clone this instance to a new one
 
-  * @method shallowClone
 
-  *
 
-  */
 
- proto.shallowClone = function shallowClone(){
 
- 	// File: expression_tree.h lines: 86-91
 
- 	var clone = new OrMatchExpression();
 
- 	for (var i = 0; i < this.numChildren(); i++) {
 
- 		clone.add(this.getChild(i).shallowClone());
 
- 	}
 
- 	return clone;
 
- };
 
 
  |