Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
37 | 2 | 6 | 0.964 | SourceElements[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 37 | 52 | Closure/closure/goog/proto2/package_test.pb.js |
2 | 37 | 96 | Closure/closure/goog/proto2/package_test.pb.js |
| ||||
/** * Gets the value of the optional_int32 field. * @return {number} The value. */ someprotopackage.TestPackageTypes.prototype.getOptionalInt32= function ( ) { return /** @type {number} */ (this.get$Value(1)); } ; /** * Sets the value of the optional_int32 field. * @param {number} value The value. */ someprotopackage.TestPackageTypes.prototype.setOptionalInt32= function (value){ this.set$Value(1, /** @type {Object} */ (value)); } ; /** * Returns whether the optional_int32 field has a value. * @return {boolean} true if the field has a value. */ someprotopackage.TestPackageTypes.prototype.hasOptionalInt32= function ( ) { return this.has$Value(1); } ; /** * Gets the number of values in the optional_int32 field. * @return {number} */ someprotopackage.TestPackageTypes.prototype.optionalInt32Count= function ( ) { return this.count$Values(1); } ; /** * Clears the values in the optional_int32 field. */ someprotopackage.TestPackageTypes.prototype.clearOptionalInt32= function ( ) { this.clear$Field(1); } ; |
| ||||
/** * Gets the value of the other_all field. * @return {proto2.TestAllTypes} The value. */ someprotopackage.TestPackageTypes.prototype.getOtherAll= function ( ) { return /** @type {proto2.TestAllTypes} */ (this.get$Value(2)); } ; /** * Sets the value of the other_all field. * @param {proto2.TestAllTypes} value The value. */ someprotopackage.TestPackageTypes.prototype.setOtherAll= function (value){ this.set$Value(2, /** @type {Object} */ (value)); } ; /** * Returns whether the other_all field has a value. * @return {boolean} true if the field has a value. */ someprotopackage.TestPackageTypes.prototype.hasOtherAll= function ( ) { return this.has$Value(2); } ; /** * Gets the number of values in the other_all field. * @return {number} */ someprotopackage.TestPackageTypes.prototype.otherAllCount= function ( ) { return this.count$Values(2); } ; /** * Clears the values in the other_all field. */ someprotopackage.TestPackageTypes.prototype.clearOtherAll= function ( ) { this.clear$Field(2); } ; |
| |||
/** * Gets the value of the optional_int32 field. * @return {number} The value. */ /** * Gets the value of the other_all field. * @return {proto2.TestAllTypes} The value. */ someprotopackage.TestPackageTypes.prototype. [[#variable5637f660]]= function ( ) { return /** @type {number} */ /** @type {proto2.TestAllTypes} */ (this.get$Value( [[#variable5637f400]])); } ; /** * Sets the value of the optional_int32 field. * @param {number} value The value. */ /** * Sets the value of the other_all field. * @param {proto2.TestAllTypes} value The value. */ someprotopackage.TestPackageTypes.prototype. [[#variable5637f5c0]]= function (value) { this.set$Value( [[#variable5637f400]], /** @type {Object} */ (value)); } ; /** * Returns whether the optional_int32 field has a value. * @return {boolean} true if the field has a value. */ /** * Returns whether the other_all field has a value. * @return {boolean} true if the field has a value. */ someprotopackage.TestPackageTypes.prototype. [[#variable5db30d60]]= function ( ) { return this.has$Value( [[#variable5637f400]]); } ; /** * Gets the number of values in the optional_int32 field. * @return {number} */ /** * Gets the number of values in the other_all field. * @return {number} */ someprotopackage.TestPackageTypes.prototype. [[#variable5637f340]]= function ( ) { return this.count$Values( [[#variable5637f400]]); } ; /** * Clears the values in the optional_int32 field. */ /** * Clears the values in the other_all field. */ someprotopackage.TestPackageTypes.prototype. [[#variable5637f2e0]]= function ( ) { this.clear$Field( [[#variable5637f400]]); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5637f660]] | getOptionalInt32 |
1 | 2 | [[#5637f660]] | getOtherAll |
2 | 1 | [[#5637f400]] | 1 |
2 | 2 | [[#5637f400]] | 2 |
3 | 1 | [[#5637f5c0]] | setOptionalInt32 |
3 | 2 | [[#5637f5c0]] | setOtherAll |
4 | 1 | [[#5db30d60]] | hasOptionalInt32 |
4 | 2 | [[#5db30d60]] | hasOtherAll |
5 | 1 | [[#5637f340]] | optionalInt32Count |
5 | 2 | [[#5637f340]] | otherAllCount |
6 | 1 | [[#5637f2e0]] | clearOptionalInt32 |
6 | 2 | [[#5637f2e0]] | clearOtherAll |