Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
22 | 2 | 6 | 0.951 | SourceElements[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 19 | 1056 | Closure/closure/goog/net/channelrequest.js |
2 | 22 | 1082 | Closure/closure/goog/net/channelrequest.js |
| ||||
/** * Indicates whether the request was successful. Only valid after the handler * is called to indicate completion of the request. * * @return {boolean} True if the request succeeded. */ goog.net.ChannelRequest.prototype.getSuccess= function ( ) { return this.successful_; } ; /** * If the request was not successful, returns the reason. * * @return {?goog.net.ChannelRequest.Error} The last error. */ goog.net.ChannelRequest.prototype.getLastError= function ( ) { return this.lastError_; } ; /** * Returns the status code of the last request. * @return {number} The status code of the last request. */ goog.net.ChannelRequest.prototype.getLastStatusCode= function ( ) { return this.lastStatusCode_; } ; |
| ||||
/** * Returns the session id for this channel. * * @return {string|undefined} The session ID. */ goog.net.ChannelRequest.prototype.getSessionId= function ( ) { return this.sid_; } ; /** * Returns the request id for this request. Each request has a unique request * id and the request IDs are a sequential increasing count. * * @return {string|number|undefined} The request ID. */ goog.net.ChannelRequest.prototype.getRequestId= function ( ) { return this.rid_; } ; /** * Returns the data for a post, if this request is a post. * * @return {?string} The POST data provided by the request initiator. */ goog.net.ChannelRequest.prototype.getPostData= function ( ) { return this.postData_; } ; |
| |||
/** * Returns the session id for this channel. * * @return {string|undefined} The session ID. */ /** * Indicates whether the request was successful. Only valid after the handler * is called to indicate completion of the request. * * @return {boolean} True if the request succeeded. */ goog.net.ChannelRequest.prototype. [[#variable3edb7bc0]]= function ( ) { return this. [[#variable3edb7a60]]; } ; /** * Returns the request id for this request. Each request has a unique request * id and the request IDs are a sequential increasing count. * * @return {string|number|undefined} The request ID. */ /** * If the request was not successful, returns the reason. * * @return {?goog.net.ChannelRequest.Error} The last error. */ goog.net.ChannelRequest.prototype. [[#variable3edb7a80]]= function ( ) { return this. [[#variable3edb7b40]]; } ; /** * Returns the data for a post, if this request is a post. * * @return {?string} The POST data provided by the request initiator. */ /** * Returns the status code of the last request. * @return {number} The status code of the last request. */ goog.net.ChannelRequest.prototype. [[#variable3edb7980]]= function ( ) { return this. [[#variable3edb7900]]; } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#3edb7bc0]] | getSessionId |
1 | 2 | [[#3edb7bc0]] | getSuccess |
2 | 1 | [[#3edb7a60]] | sid_ |
2 | 2 | [[#3edb7a60]] | successful_ |
3 | 1 | [[#3edb7a80]] | getRequestId |
3 | 2 | [[#3edb7a80]] | getLastError |
4 | 1 | [[#3edb7b40]] | rid_ |
4 | 2 | [[#3edb7b40]] | lastError_ |
5 | 1 | [[#3edb7980]] | getPostData |
5 | 2 | [[#3edb7980]] | getLastStatusCode |
6 | 1 | [[#3edb7900]] | postData_ |
6 | 2 | [[#3edb7900]] | lastStatusCode_ |