Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
32 | 2 | 2 | 0.994 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 32 | 1758 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/DefaultBytecodeVisitor.java |
2 | 32 | 1795 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/DefaultBytecodeVisitor.java |
| ||||
/** * @see IBytecodeVisitor#_ldc_w(int, int, IConstantPoolEntry) */ public void _ldc_w(int pc, int index, IConstantPoolEntry constantPoolEntry) { dumpPcNumber(pc); switch (constantPoolEntry.getKind()) { case IConstantPoolConstant.CONSTANT_Float: buffer.append(Messages.bind(Messages.classformat_ldc_w_float, new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LDC_W], Integer.toString(index), Float.toString(constantPoolEntry.getFloatValue()) } )); break; case IConstantPoolConstant.CONSTANT_Integer: buffer.append(Messages.bind(Messages.classformat_ldc_w_integer, new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LDC_W], Integer.toString(index), Integer.toString(constantPoolEntry.getIntegerValue()) } )); break; case IConstantPoolConstant.CONSTANT_String: buffer.append(Messages.bind(Messages.classformat_ldc_w_string, new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LDC_W], Integer.toString(index), Disassembler.escapeString(constantPoolEntry.getStringValue()) } )); break; case IConstantPoolConstant.CONSTANT_Class: buffer.append(Messages.bind(Messages.classformat_ldc_w_class, new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LDC_W], Integer.toString(index), returnConstantClassName(constantPoolEntry) } )); } writeNewLine(); } |
| ||||
/** * @see IBytecodeVisitor#_ldc(int, int, IConstantPoolEntry) */ public void _ldc(int pc, int index, IConstantPoolEntry constantPoolEntry) { dumpPcNumber(pc); switch (constantPoolEntry.getKind()) { case IConstantPoolConstant.CONSTANT_Float: buffer.append(Messages.bind(Messages.classformat_ldc_w_float, new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LDC], Integer.toString(index), Float.toString(constantPoolEntry.getFloatValue()) } )); break; case IConstantPoolConstant.CONSTANT_Integer: buffer.append(Messages.bind(Messages.classformat_ldc_w_integer, new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LDC], Integer.toString(index), Integer.toString(constantPoolEntry.getIntegerValue()) } )); break; case IConstantPoolConstant.CONSTANT_String: buffer.append(Messages.bind(Messages.classformat_ldc_w_string, new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LDC], Integer.toString(index), Disassembler.escapeString(constantPoolEntry.getStringValue()) } )); break; case IConstantPoolConstant.CONSTANT_Class: buffer.append(Messages.bind(Messages.classformat_ldc_w_class, new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LDC], Integer.toString(index), returnConstantClassName(constantPoolEntry) } )); } writeNewLine(); } |
| |||
/** * @see IBytecodeVisitor#_ldc_w(int, int, IConstantPoolEntry) */ /** * @see IBytecodeVisitor#_ldc(int, int, IConstantPoolEntry) */ public void [[#variablec1c0bde0]](int pc, int index, IConstantPoolEntry constantPoolEntry) { dumpPcNumber(pc); switch (constantPoolEntry.getKind()) { case IConstantPoolConstant.CONSTANT_Float: buffer.append(Messages.bind(Messages.classformat_ldc_w_float, new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics. [[#variablebd7586e0]]], Integer.toString(index), Float.toString(constantPoolEntry.getFloatValue()) } )); break; case IConstantPoolConstant.CONSTANT_Integer: buffer.append(Messages.bind(Messages.classformat_ldc_w_integer, new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics. [[#variablebd7586e0]]], Integer.toString(index), Integer.toString(constantPoolEntry.getIntegerValue()) } )); break; case IConstantPoolConstant.CONSTANT_String: buffer.append(Messages.bind(Messages.classformat_ldc_w_string, new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics. [[#variablebd7586e0]]], Integer.toString(index), Disassembler.escapeString(constantPoolEntry.getStringValue()) } )); break; case IConstantPoolConstant.CONSTANT_Class: buffer.append(Messages.bind(Messages.classformat_ldc_w_class, new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics. [[#variablebd7586e0]]], Integer.toString(index), returnConstantClassName(constantPoolEntry) } )); } writeNewLine(); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#c1c0bde0]] | _ldc_w |
1 | 2 | [[#c1c0bde0]] | _ldc |
2 | 1 | [[#bd7586e0]] | LDC_W |
2 | 2 | [[#bd7586e0]] | LDC |