| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 39 | 2 | 6 | 0.957 | SourceElements[6] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 39 | 1829 | Closure/closure/goog/proto2/test.pb.js |
| 2 | 39 | 1886 | Closure/closure/goog/proto2/test.pb.js |
| ||||
/**
* Message NestedMessage.
* @constructor
* @extends {goog.proto2.Message}
*/
proto2.TestAllTypes.NestedMessage= function ( )
{
goog.proto2.Message.apply(this );
} ;
goog.inherits(proto2.TestAllTypes.NestedMessage, goog.proto2.Message);
/**
* Gets the value of the b field.
* @return {number} The value.
*/
proto2.TestAllTypes.NestedMessage.prototype.getB= function ( )
{
return /** @type {number} */
(this.get$Value(1));
} ;
/**
* Sets the value of the b field.
* @param {number} value The value.
*/
proto2.TestAllTypes.NestedMessage.prototype.setB= function (value){
this.set$Value(1, /** @type {Object} */
(value));
} ;
/**
* Returns whether the b field has a value.
* @return {boolean} true if the field has a value.
*/
proto2.TestAllTypes.NestedMessage.prototype.hasB= function ( )
{
return this.has$Value(1);
} ;
/**
* Gets the number of values in the b field.
* @return {number}
*/
proto2.TestAllTypes.NestedMessage.prototype.bCount= function ( )
{
return this.count$Values(1);
} ;
|
| ||||
/**
* Message OptionalGroup.
* @constructor
* @extends {goog.proto2.Message}
*/
proto2.TestAllTypes.OptionalGroup= function ( )
{
goog.proto2.Message.apply(this );
} ;
goog.inherits(proto2.TestAllTypes.OptionalGroup, goog.proto2.Message);
/**
* Gets the value of the a field.
* @return {number} The value.
*/
proto2.TestAllTypes.OptionalGroup.prototype.getA= function ( )
{
return /** @type {number} */
(this.get$Value(17));
} ;
/**
* Sets the value of the a field.
* @param {number} value The value.
*/
proto2.TestAllTypes.OptionalGroup.prototype.setA= function (value){
this.set$Value(17, /** @type {Object} */
(value));
} ;
/**
* Returns whether the a field has a value.
* @return {boolean} true if the field has a value.
*/
proto2.TestAllTypes.OptionalGroup.prototype.hasA= function ( )
{
return this.has$Value(17);
} ;
/**
* Gets the number of values in the a field.
* @return {number}
*/
proto2.TestAllTypes.OptionalGroup.prototype.aCount= function ( )
{
return this.count$Values(17);
} ;
|
| |||
/**
* Message NestedMessage.
* @constructor
* @extends {goog.proto2.Message}
*/
/**
* Message OptionalGroup.
* @constructor
* @extends {goog.proto2.Message}
*/
proto2.TestAllTypes. [[#variable6153a940]]= function ( )
{ goog.proto2.Message.apply(this );
} ;
goog.inherits(proto2.TestAllTypes. [[#variable6153a940]],goog.proto2.Message);
/**
* Gets the value of the b field.
* @return {number} The value.
*/
/**
* Gets the value of the a field.
* @return {number} The value.
*/
proto2.TestAllTypes. [[#variable6153a940]].prototype. [[#variable61a22d80]]= function ( )
{ return /** @type {number} */
(this.get$Value( [[#variable5a587a40]]));
} ;
/**
* Sets the value of the b field.
* @param {number} value The value.
*/
/**
* Sets the value of the a field.
* @param {number} value The value.
*/
proto2.TestAllTypes. [[#variable6153a940]].prototype. [[#variable61a22e80]]= function (value)
{ this.set$Value( [[#variable5a587a40]], /** @type {Object} */
(value));
} ;
/**
* Returns whether the b field has a value.
* @return {boolean} true if the field has a value.
*/
/**
* Returns whether the a field has a value.
* @return {boolean} true if the field has a value.
*/
proto2.TestAllTypes. [[#variable6153a940]].prototype. [[#variable6153baa0]]= function ( )
{ return this.has$Value( [[#variable5a587a40]]);
} ;
/**
* Gets the number of values in the b field.
* @return {number}
*/
/**
* Gets the number of values in the a field.
* @return {number}
*/
proto2.TestAllTypes. [[#variable6153a940]].prototype. [[#variable61a22ae0]]= function ( )
{ return this.count$Values( [[#variable5a587a40]]);
} ;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#6153a940]] | NestedMessage |
| 1 | 2 | [[#6153a940]] | OptionalGroup |
| 2 | 1 | [[#61a22d80]] | getB |
| 2 | 2 | [[#61a22d80]] | getA |
| 3 | 1 | [[#5a587a40]] | 1 |
| 3 | 2 | [[#5a587a40]] | 17 |
| 4 | 1 | [[#61a22e80]] | setB |
| 4 | 2 | [[#61a22e80]] | setA |
| 5 | 1 | [[#6153baa0]] | hasB |
| 5 | 2 | [[#6153baa0]] | hasA |
| 6 | 1 | [[#61a22ae0]] | bCount |
| 6 | 2 | [[#61a22ae0]] | aCount |