"use strict"; 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'; }, klass = AtomicMatchExpression, base = MatchExpression, 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) { return this._debugAddSpace( level ) + "$atomic\n"; }; /** * * checks if this expression is == to the other * @method equivalent * @param other * */ proto.equivalent = function equivalent(other) { return other._matchType === this._matchType; }; /** * * matches checks the input doc against the internal element path to see if it is a match * @method matches * @param doc * */ proto.matches = function matches(doc) { return true; }; /** * * Check if the input element matches * @method matchesSingleElement * @param e * */ proto.matchesSingleElement = function matchesSingleElement(e) { return true; }; /** * * clone this instance to a new one * @method shallowClone * */ proto.shallowClone = function shallowClone(){ return new AtomicMatchExpression(); };