Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
30 | 2 | 5 | 0.982 | statement_sequence[8] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 30 | 1015 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/Disassembler.java |
2 | 30 | 1060 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/Disassembler.java |
| ||||
for (int i = 0; i < localVariableAttributeLength - 1; i++) { ILocalVariableTableEntry localVariableTableEntry = localVariableTableEntries[i]; int index = localVariableTableEntry.getIndex(); int startPC = localVariableTableEntry.getStartPC(); int length = localVariableTableEntry.getLength(); final char[] typeName = Signature.toCharArray(localVariableTableEntry.getDescriptor()); CharOperation.replace(typeName, '/', '.'); buffer.append(Messages.bind(Messages.classfileformat_localvariabletableentry, new String[] { Integer.toString(startPC), Integer.toString(startPC + length), new String(localVariableTableEntry.getName()), Integer.toString(index), new String(returnClassName(typeName, '.', mode)) } )); writeNewLine(buffer, lineSeparator, tabNumberForLocalVariableAttribute + 1); } ILocalVariableTableEntry localVariableTableEntry = localVariableTableEntries[localVariableAttributeLength - 1]; int index = localVariableTableEntry.getIndex(); int startPC = localVariableTableEntry.getStartPC(); int length = localVariableTableEntry.getLength(); final char[] typeName = Signature.toCharArray(localVariableTableEntry.getDescriptor()); CharOperation.replace(typeName, '/', '.'); buffer.append(Messages.bind(Messages.classfileformat_localvariabletableentry, new String[] { Integer.toString(startPC), Integer.toString(startPC + length), new String(localVariableTableEntry.getName()), Integer.toString(index), new String(returnClassName(typeName, '.', mode)) } )); |
| ||||
for (int i = 0; i < localVariableTypeTableLength - 1; i++) { ILocalVariableTypeTableEntry localVariableTypeTableEntry = localVariableTypeTableEntries[i]; int index = localVariableTypeTableEntry.getIndex(); int startPC = localVariableTypeTableEntry.getStartPC(); int length = localVariableTypeTableEntry.getLength(); final char[] typeName = Signature.toCharArray(localVariableTypeTableEntry.getSignature()); CharOperation.replace(typeName, '/', '.'); buffer.append(Messages.bind(Messages.classfileformat_localvariabletableentry, new String[] { Integer.toString(startPC), Integer.toString(startPC + length), new String(localVariableTypeTableEntry.getName()), Integer.toString(index), new String(returnClassName(typeName, '.', mode)) } )); writeNewLine(buffer, lineSeparator, tabNumberForLocalVariableAttribute + 1); } ILocalVariableTypeTableEntry localVariableTypeTableEntry = localVariableTypeTableEntries[localVariableTypeTableLength - 1]; int index = localVariableTypeTableEntry.getIndex(); int startPC = localVariableTypeTableEntry.getStartPC(); int length = localVariableTypeTableEntry.getLength(); final char[] typeName = Signature.toCharArray(localVariableTypeTableEntry.getSignature()); CharOperation.replace(typeName, '/', '.'); buffer.append(Messages.bind(Messages.classfileformat_localvariabletableentry, new String[] { Integer.toString(startPC), Integer.toString(startPC + length), new String(localVariableTypeTableEntry.getName()), Integer.toString(index), new String(returnClassName(typeName, '.', mode)) } )); |
| |||
for (int i = 0; i < [[#variableb7c1f4c0]] - 1; i++) { [[#variableb7c1f480]] [[#variable7d16b540]]= [[#variableb7c1f320]][i]; int index = [[#variable7d16b540]].getIndex(); int startPC = [[#variable7d16b540]].getStartPC(); int length = [[#variable7d16b540]].getLength(); final char[] typeName = Signature.toCharArray( [[#variable7d16b540]]. [[#variable7d16b380]]()); CharOperation.replace(typeName, '/', '.'); buffer.append(Messages.bind(Messages.classfileformat_localvariabletableentry, new String[] { Integer.toString(startPC), Integer.toString(startPC + length), new String( [[#variable7d16b540]].getName()), Integer.toString(index), new String(returnClassName(typeName, '.', mode)) } )); writeNewLine(buffer, lineSeparator, tabNumberForLocalVariableAttribute + 1); } [[#variableb7c1f480]] [[#variable7d16b540]]= [[#variableb7c1f320]][ [[#variableb7c1f4c0]] - 1]; int index = [[#variable7d16b540]].getIndex(); int startPC = [[#variable7d16b540]].getStartPC(); int length = [[#variable7d16b540]].getLength(); final char[] typeName = Signature.toCharArray( [[#variable7d16b540]]. [[#variable7d16b380]]()); CharOperation.replace(typeName, '/', '.'); buffer.append(Messages.bind(Messages.classfileformat_localvariabletableentry, new String[] { Integer.toString(startPC), Integer.toString(startPC + length), new String( [[#variable7d16b540]].getName()), Integer.toString(index), new String(returnClassName(typeName, '.', mode)) } )); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b7c1f4c0]] | localVariableAttributeLength |
1 | 2 | [[#b7c1f4c0]] | localVariableTypeTableLength |
2 | 1 | [[#b7c1f480]] | ILocalVariableTableEntry |
2 | 2 | [[#b7c1f480]] | ILocalVariableTypeTableEntry |
3 | 1 | [[#7d16b540]] | localVariableTableEntry |
3 | 2 | [[#7d16b540]] | localVariableTypeTableEntry |
4 | 1 | [[#b7c1f320]] | localVariableTableEntries |
4 | 2 | [[#b7c1f320]] | localVariableTypeTableEntries |
5 | 1 | [[#7d16b380]] | getDescriptor |
5 | 2 | [[#7d16b380]] | getSignature |