Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 3 | 3 | 0.979 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 4060 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java |
2 | 14 | 4130 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java |
3 | 14 | 4305 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java |
| ||||
/** * This method is used to retrieve the position after the right parenthesis. * @return int the position found */ protected int retrieveEndOfRightParenthesisPosition(int start, int end) { this.scanner.resetTo(start, end); try { int token; while ((token = this.scanner.getNextToken()) != TerminalTokens.TokenNameEOF) { switch (token) { case TerminalTokens.TokenNameRPAREN: return this.scanner.currentPosition; } } } catch (InvalidInputException e) { // ignore } return -1; } |
| ||||
/** * This method is used to retrieve the start position of the block. * @return int the dimension found, -1 if none */ protected int retrieveIdentifierEndPosition(int start, int end) { this.scanner.resetTo(start, end); try { int token; while ((token = this.scanner.getNextToken()) != TerminalTokens.TokenNameEOF) { switch (token) { case TerminalTokens.TokenNameIdentifier: //110 return this.scanner.getCurrentTokenEndPosition(); } } } catch (InvalidInputException e) { // ignore } return -1; } |
| ||||
/** * This method is used to retrieve the starting position of the catch keyword. * @return int the dimension found, -1 if none */ protected int retrieveStartingCatchPosition(int start, int end) { this.scanner.resetTo(start, end); try { int token; while ((token = this.scanner.getNextToken()) != TerminalTokens.TokenNameEOF) { switch (token) { case TerminalTokens.TokenNamecatch: //225 return this.scanner.startPosition; } } } catch (InvalidInputException e) { // ignore } return -1; } |
| |||
/** * This method is used to retrieve the position after the right parenthesis. * @return int the position found */ /** * This method is used to retrieve the start position of the block. * @return int the dimension found, -1 if none */ /** * This method is used to retrieve the starting position of the catch keyword. * @return int the dimension found, -1 if none */ protected int [[#variable54f9dd60]](int start, int end) { this.scanner.resetTo(start, end); try { int token; while ((token = this.scanner.getNextToken()) != TerminalTokens.TokenNameEOF) { switch (token) { case TerminalTokens. [[#variable54f9dce0]]: //110 //225 return this.scanner [[#variable54f9dc40]]; } } } catch (InvalidInputException e) { // ignore } return -1; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#54f9dd60]] | retrieveEndOfRightParenthesisPosition |
1 | 2 | [[#54f9dd60]] | retrieveIdentifierEndPosition |
1 | 3 | [[#54f9dd60]] | retrieveStartingCatchPosition |
2 | 1 | [[#54f9dce0]] | TokenNameRPAREN |
2 | 2 | [[#54f9dce0]] | TokenNameIdentifier |
2 | 3 | [[#54f9dce0]] | TokenNamecatch |
3 | 1 | [[#54f9dc40]] | .currentPosition |
3 | 2 | [[#54f9dc40]] | .getCurrentTokenEndPosition() |
3 | 3 | [[#54f9dc40]] | .startPosition |