Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
30 | 2 | 6 | 0.987 | class_body_declarations[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 31 | 3492 | plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionParser.java |
2 | 30 | 1085 | plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistParser.java |
| ||||
protected boolean isInsideAnnotation() { int i = elementPtr; while (i > -1) { if (elementKindStack[i] == K_BETWEEN_ANNOTATION_NAME_AND_RPAREN) return true; i--; } return false; } protected boolean isIndirectlyInsideBlock() { int i = elementPtr; while (i > -1) { if (elementKindStack[i] == K_BLOCK_DELIMITER) return true; i--; } return false; } protected boolean isInsideBlock() { int i = elementPtr; while (i > -1) { switch (elementKindStack[i]) { case K_TYPE_DELIMITER: return false; case K_METHOD_DELIMITER: return false; case K_FIELD_INITIALIZER_DELIMITER: return false; case K_BLOCK_DELIMITER: return true; } i--; } return false; } |
| ||||
protected boolean isIndirectlyInsideMethod() { int i = elementPtr; while (i > -1) { if (elementKindStack[i] == K_METHOD_DELIMITER) return true; i--; } return false; } protected boolean isIndirectlyInsideType() { int i = elementPtr; while (i > -1) { if (elementKindStack[i] == K_TYPE_DELIMITER) return true; i--; } return false; } protected boolean isInsideAttributeValue() { int i = elementPtr; while (i > -1) { switch (elementKindStack[i]) { case K_TYPE_DELIMITER: return false; case K_METHOD_DELIMITER: return false; case K_FIELD_INITIALIZER_DELIMITER: return false; case K_ATTRIBUTE_VALUE_DELIMITER: return true; } i--; } return false; } |
| |||
protected boolean [[#variable773a5400]]() { int i = elementPtr; while (i > -1) { if (elementKindStack[i] == [[#variableb84a50a0]]) return true; i--; } return false; } protected boolean [[#variablebb03b7a0]]() { int i = elementPtr; while (i > -1) { if (elementKindStack[i] == [[#variable773a53a0]]) return true; i--; } return false; } protected boolean [[#variableb30ec400]]() { int i = elementPtr; while (i > -1) { switch (elementKindStack[i]) { case K_TYPE_DELIMITER: return false; case K_METHOD_DELIMITER: return false; case K_FIELD_INITIALIZER_DELIMITER: return false; case [[#variableb84a4c40]]: return true; } i--; } return false; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#773a5400]] | isIndirectlyInsideMethod |
1 | 2 | [[#773a5400]] | isInsideAnnotation |
2 | 1 | [[#b84a50a0]] | K_METHOD_DELIMITER |
2 | 2 | [[#b84a50a0]] | K_BETWEEN_ANNOTATION_NAME_AND_RPAREN |
3 | 1 | [[#bb03b7a0]] | isIndirectlyInsideType |
3 | 2 | [[#bb03b7a0]] | isIndirectlyInsideBlock |
4 | 1 | [[#773a53a0]] | K_TYPE_DELIMITER |
4 | 2 | [[#773a53a0]] | K_BLOCK_DELIMITER |
5 | 1 | [[#b30ec400]] | isInsideAttributeValue |
5 | 2 | [[#b30ec400]] | isInsideBlock |
6 | 1 | [[#b84a4c40]] | K_ATTRIBUTE_VALUE_DELIMITER |
6 | 2 | [[#b84a4c40]] | K_BLOCK_DELIMITER |