js/PluginMatcher.js
function (serviceName, methodNames, pointCut) {
            var fullName, ret = [];

            methodNames.forEach(function (name) {
                fullName = serviceName + "." + name;
                var match = this.match(fullName, pointCut);
                if (match) {
                    ret.push(name);
                }
            }, this);

            return ret;
        }
function (serviceName, methodNames, pointCut) {
            var fullName, ret = [];

            methodNames.forEach(function (name) {
                fullName = serviceName + "." + name;
                var match = this.match(fullName, pointCut);
                if (match) {
                    ret.push(name);
                }
            }, this);

            return ret;
        }
function ( serviceName , methodNames , pointCut ) { var fullName , ret = [ ] ; methodNames . forEach ( function ( name ) { fullName = serviceName + "." + name ; var match = this . match ( fullName , pointCut ) ; if ( match ) { ret . push ( name ) ; } } , this ) ; return ret ; }
Returns the method names from the passed array that match the given
pointCut.

@param serviceName - the name of the service to match against.
@param methodNames - array of names to match against.
@param pointCut = the pointcut to match.
Returns the method names from the passed array that match the given pointCut .