| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 13 | 2 | 3 | 0.950 | SourceElements[3] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 19 | 35 | Closure/closure/goog/dom/pattern/nodetype.js |
| 2 | 13 | 37 | Closure/closure/goog/dom/pattern/text.js |
| ||||
goog.require('goog.dom.pattern.MatchType');
/**
* Pattern object that matches any node of the given type.
* @param {goog.dom.NodeType} nodeType The node type to match.
* @constructor
* @extends {goog.dom.pattern.AbstractPattern}
*/
goog.dom.pattern.NodeType= function (nodeType){
/**
* The node type to match.
* @type {goog.dom.NodeType}
* @private
*/
this.nodeType_= nodeType;
} ;
goog.inherits(goog.dom.pattern.NodeType, goog.dom.pattern.AbstractPattern);
|
| ||||
goog.require('goog.dom.pattern.MatchType');
/**
* Pattern object that matches text by exact matching or regular expressions.
*
* @param {string|RegExp} match String or regular expression to match against.
* @constructor
* @extends {goog.dom.pattern.AbstractPattern}
*/
goog.dom.pattern.Text= function (match){
this.match_= match;
} ;
goog.inherits(goog.dom.pattern.Text, goog.dom.pattern.AbstractPattern);
|
| |||
goog.require('goog.dom.pattern.MatchType');
/**
* Pattern object that matches text by exact matching or regular expressions.
*
* @param {string|RegExp} match String or regular expression to match against.
* @constructor
* @extends {goog.dom.pattern.AbstractPattern}
*/
/**
* Pattern object that matches any node of the given type.
* @param {goog.dom.NodeType} nodeType The node type to match.
* @constructor
* @extends {goog.dom.pattern.AbstractPattern}
*/
goog.dom.pattern. [[#variable1fd48420]]= function ( [[#variable21089d00]])
{
/**
* The node type to match.
* @type {goog.dom.NodeType}
* @private
*/
this. [[#variable57580100]]= [[#variable21089d00]];
} ;
goog.inherits(goog.dom.pattern. [[#variable1fd48420]],goog.dom.pattern.AbstractPattern);
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#1fd48420]] | Text |
| 1 | 2 | [[#1fd48420]] | NodeType |
| 2 | 1 | [[#21089d00]] | match |
| 2 | 2 | [[#21089d00]] | nodeType |
| 3 | 1 | [[#57580100]] | match_ |
| 3 | 2 | [[#57580100]] | nodeType_ |