CloneSet347


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
32220.994class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1321758
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/DefaultBytecodeVisitor.java
2321795
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/DefaultBytecodeVisitor.java
Clone Instance
1
Line Count
32
Source Line
1758
Source File
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();
        }


Clone Instance
2
Line Count
32
Source Line
1795
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/DefaultBytecodeVisitor.java

        /**
         * @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();
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         * @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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#c1c0bde0]]
_ldc_w 
12[[#c1c0bde0]]
_ldc 
21[[#bd7586e0]]
LDC_W 
22[[#bd7586e0]]
LDC