Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
81 | 2 | 2 | 0.997 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 81 | 2632 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java |
2 | 81 | 2734 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java |
| ||||
public void generateUnboxingConversion(int unboxedTypeID) { switch (unboxedTypeID) { case TypeIds.T_byte: // invokevirtual: byteValue() this.invoke( Opcodes.OPC_invokevirtual, 0, // argCount 1, // return type size ConstantPool.JavaLangByteConstantPoolName, ConstantPool.BYTEVALUE_BYTE_METHOD_NAME, ConstantPool.BYTEVALUE_BYTE_METHOD_SIGNATURE); break; case TypeIds.T_short: // invokevirtual: shortValue() this.invoke( Opcodes.OPC_invokevirtual, 0, // argCount 1, // return type size ConstantPool.JavaLangShortConstantPoolName, ConstantPool.SHORTVALUE_SHORT_METHOD_NAME, ConstantPool.SHORTVALUE_SHORT_METHOD_SIGNATURE); break; case TypeIds.T_char: // invokevirtual: charValue() this.invoke( Opcodes.OPC_invokevirtual, 0, // argCount 1, // return type size ConstantPool.JavaLangCharacterConstantPoolName, ConstantPool.CHARVALUE_CHARACTER_METHOD_NAME, ConstantPool.CHARVALUE_CHARACTER_METHOD_SIGNATURE); break; case TypeIds.T_int: // invokevirtual: intValue() this.invoke( Opcodes.OPC_invokevirtual, 0, // argCount 1, // return type size ConstantPool.JavaLangIntegerConstantPoolName, ConstantPool.INTVALUE_INTEGER_METHOD_NAME, ConstantPool.INTVALUE_INTEGER_METHOD_SIGNATURE); break; case TypeIds.T_long: // invokevirtual: longValue() this.invoke( Opcodes.OPC_invokevirtual, 0, // argCount 2, // return type size ConstantPool.JavaLangLongConstantPoolName, ConstantPool.LONGVALUE_LONG_METHOD_NAME, ConstantPool.LONGVALUE_LONG_METHOD_SIGNATURE); break; case TypeIds.T_float: // invokevirtual: floatValue() this.invoke( Opcodes.OPC_invokevirtual, 0, // argCount 1, // return type size ConstantPool.JavaLangFloatConstantPoolName, ConstantPool.FLOATVALUE_FLOAT_METHOD_NAME, ConstantPool.FLOATVALUE_FLOAT_METHOD_SIGNATURE); break; case TypeIds.T_double: // invokevirtual: doubleValue() this.invoke( Opcodes.OPC_invokevirtual, 0, // argCount 2, // return type size ConstantPool.JavaLangDoubleConstantPoolName, ConstantPool.DOUBLEVALUE_DOUBLE_METHOD_NAME, ConstantPool.DOUBLEVALUE_DOUBLE_METHOD_SIGNATURE); break; case TypeIds.T_boolean: // invokevirtual: booleanValue() this.invoke( Opcodes.OPC_invokevirtual, 0, // argCount 1, // return type size ConstantPool.JavaLangBooleanConstantPoolName, ConstantPool.BOOLEANVALUE_BOOLEAN_METHOD_NAME, ConstantPool.BOOLEANVALUE_BOOLEAN_METHOD_SIGNATURE); } } |
| ||||
public void getBaseTypeValue(int baseTypeID) { switch (baseTypeID) { case TypeIds.T_byte: // invokevirtual: byteValue() this.invoke( Opcodes.OPC_invokevirtual, 0, // argCount 1, // return type size ConstantPool.JavaLangByteConstantPoolName, ConstantPool.BYTEVALUE_BYTE_METHOD_NAME, ConstantPool.BYTEVALUE_BYTE_METHOD_SIGNATURE); break; case TypeIds.T_short: // invokevirtual: shortValue() this.invoke( Opcodes.OPC_invokevirtual, 0, // argCount 1, // return type size ConstantPool.JavaLangShortConstantPoolName, ConstantPool.SHORTVALUE_SHORT_METHOD_NAME, ConstantPool.SHORTVALUE_SHORT_METHOD_SIGNATURE); break; case TypeIds.T_char: // invokevirtual: charValue() this.invoke( Opcodes.OPC_invokevirtual, 0, // argCount 1, // return type size ConstantPool.JavaLangCharacterConstantPoolName, ConstantPool.CHARVALUE_CHARACTER_METHOD_NAME, ConstantPool.CHARVALUE_CHARACTER_METHOD_SIGNATURE); break; case TypeIds.T_int: // invokevirtual: intValue() this.invoke( Opcodes.OPC_invokevirtual, 0, // argCount 1, // return type size ConstantPool.JavaLangIntegerConstantPoolName, ConstantPool.INTVALUE_INTEGER_METHOD_NAME, ConstantPool.INTVALUE_INTEGER_METHOD_SIGNATURE); break; case TypeIds.T_long: // invokevirtual: longValue() this.invoke( Opcodes.OPC_invokevirtual, 0, // argCount 2, // return type size ConstantPool.JavaLangLongConstantPoolName, ConstantPool.LONGVALUE_LONG_METHOD_NAME, ConstantPool.LONGVALUE_LONG_METHOD_SIGNATURE); break; case TypeIds.T_float: // invokevirtual: floatValue() this.invoke( Opcodes.OPC_invokevirtual, 0, // argCount 1, // return type size ConstantPool.JavaLangFloatConstantPoolName, ConstantPool.FLOATVALUE_FLOAT_METHOD_NAME, ConstantPool.FLOATVALUE_FLOAT_METHOD_SIGNATURE); break; case TypeIds.T_double: // invokevirtual: doubleValue() this.invoke( Opcodes.OPC_invokevirtual, 0, // argCount 2, // return type size ConstantPool.JavaLangDoubleConstantPoolName, ConstantPool.DOUBLEVALUE_DOUBLE_METHOD_NAME, ConstantPool.DOUBLEVALUE_DOUBLE_METHOD_SIGNATURE); break; case TypeIds.T_boolean: // invokevirtual: booleanValue() this.invoke( Opcodes.OPC_invokevirtual, 0, // argCount 1, // return type size ConstantPool.JavaLangBooleanConstantPoolName, ConstantPool.BOOLEANVALUE_BOOLEAN_METHOD_NAME, ConstantPool.BOOLEANVALUE_BOOLEAN_METHOD_SIGNATURE); } } |
| |||
public void [[#variableb89c6ec0]](int [[#variableb89c6da0]]) { switch ( [[#variableb89c6da0]]) { case TypeIds.T_byte: // invokevirtual: byteValue() this.invoke(Opcodes.OPC_invokevirtual, 0, // argCount 1, // return type size ConstantPool.JavaLangByteConstantPoolName, ConstantPool.BYTEVALUE_BYTE_METHOD_NAME, ConstantPool.BYTEVALUE_BYTE_METHOD_SIGNATURE); break; case TypeIds.T_short: // invokevirtual: shortValue() this.invoke(Opcodes.OPC_invokevirtual, 0, // argCount 1, // return type size ConstantPool.JavaLangShortConstantPoolName, ConstantPool.SHORTVALUE_SHORT_METHOD_NAME, ConstantPool.SHORTVALUE_SHORT_METHOD_SIGNATURE); break; case TypeIds.T_char: // invokevirtual: charValue() this.invoke(Opcodes.OPC_invokevirtual, 0, // argCount 1, // return type size ConstantPool.JavaLangCharacterConstantPoolName, ConstantPool.CHARVALUE_CHARACTER_METHOD_NAME, ConstantPool.CHARVALUE_CHARACTER_METHOD_SIGNATURE); break; case TypeIds.T_int: // invokevirtual: intValue() this.invoke(Opcodes.OPC_invokevirtual, 0, // argCount 1, // return type size ConstantPool.JavaLangIntegerConstantPoolName, ConstantPool.INTVALUE_INTEGER_METHOD_NAME, ConstantPool.INTVALUE_INTEGER_METHOD_SIGNATURE); break; case TypeIds.T_long: // invokevirtual: longValue() this.invoke(Opcodes.OPC_invokevirtual, 0, // argCount 2, // return type size ConstantPool.JavaLangLongConstantPoolName, ConstantPool.LONGVALUE_LONG_METHOD_NAME, ConstantPool.LONGVALUE_LONG_METHOD_SIGNATURE); break; case TypeIds.T_float: // invokevirtual: floatValue() this.invoke(Opcodes.OPC_invokevirtual, 0, // argCount 1, // return type size ConstantPool.JavaLangFloatConstantPoolName, ConstantPool.FLOATVALUE_FLOAT_METHOD_NAME, ConstantPool.FLOATVALUE_FLOAT_METHOD_SIGNATURE); break; case TypeIds.T_double: // invokevirtual: doubleValue() this.invoke(Opcodes.OPC_invokevirtual, 0, // argCount 2, // return type size ConstantPool.JavaLangDoubleConstantPoolName, ConstantPool.DOUBLEVALUE_DOUBLE_METHOD_NAME, ConstantPool.DOUBLEVALUE_DOUBLE_METHOD_SIGNATURE); break; case TypeIds.T_boolean: // invokevirtual: booleanValue() this.invoke(Opcodes.OPC_invokevirtual, 0, // argCount 1, // return type size ConstantPool.JavaLangBooleanConstantPoolName, ConstantPool.BOOLEANVALUE_BOOLEAN_METHOD_NAME, ConstantPool.BOOLEANVALUE_BOOLEAN_METHOD_SIGNATURE); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b89c6ec0]] | generateUnboxingConversion |
1 | 2 | [[#b89c6ec0]] | getBaseTypeValue |
2 | 1 | [[#b89c6da0]] | unboxedTypeID |
2 | 2 | [[#b89c6da0]] | baseTypeID |