Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
2 | 4 | 3 | 0.957 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 2 | 36 | plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/MinusOperator.java |
2 | 2 | 43 | plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/MinusOperator.java |
3 | 2 | 50 | plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/MinusOperator.java |
4 | 2 | 57 | plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/MinusOperator.java |
| ||||
/* * @see BinaryOperator#getDoubleResult(IJavaValue, IJavaValue) */ protected double getDoubleResult(IJavaValue leftOperand, IJavaValue rightOperand) { return ((IJavaPrimitiveValue) leftOperand).getDoubleValue() - ((IJavaPrimitiveValue) rightOperand).getDoubleValue(); } |
| ||||
/* * @see BinaryOperator#getFloatResult(IJavaValue, IJavaValue) */ protected float getFloatResult(IJavaValue leftOperand, IJavaValue rightOperand) { return ((IJavaPrimitiveValue) leftOperand).getFloatValue() - ((IJavaPrimitiveValue) rightOperand).getFloatValue(); } |
| ||||
/* * @see BinaryOperator#getIntResult(IJavaValue, IJavaValue) */ protected int getIntResult(IJavaValue leftOperand, IJavaValue rightOperand) { return ((IJavaPrimitiveValue) leftOperand).getIntValue() - ((IJavaPrimitiveValue) rightOperand).getIntValue(); } |
| ||||
/* * @see BinaryOperator#getLongResult(IJavaValue, IJavaValue) */ protected long getLongResult(IJavaValue leftOperand, IJavaValue rightOperand) { return ((IJavaPrimitiveValue) leftOperand).getLongValue() - ((IJavaPrimitiveValue) rightOperand).getLongValue(); } |
| |||
/* * @see BinaryOperator#getDoubleResult(IJavaValue, IJavaValue) */ /* * @see BinaryOperator#getFloatResult(IJavaValue, IJavaValue) */ /* * @see BinaryOperator#getIntResult(IJavaValue, IJavaValue) */ /* * @see BinaryOperator#getLongResult(IJavaValue, IJavaValue) */ protected [[#variable5b26cbc0]] [[#variable5b26cb20]](IJavaValue leftOperand, IJavaValue rightOperand) { return ((IJavaPrimitiveValue) leftOperand). [[#variable5b26ca80]]() - ((IJavaPrimitiveValue) rightOperand). [[#variable5b26ca80]](); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5b26cbc0]] | double |
1 | 2 | [[#5b26cbc0]] | float |
1 | 3 | [[#5b26cbc0]] | int |
1 | 4 | [[#5b26cbc0]] | long |
2 | 1 | [[#5b26cb20]] | getDoubleResult |
2 | 2 | [[#5b26cb20]] | getFloatResult |
2 | 3 | [[#5b26cb20]] | getIntResult |
2 | 4 | [[#5b26cb20]] | getLongResult |
3 | 1 | [[#5b26ca80]] | getDoubleValue |
3 | 2 | [[#5b26ca80]] | getFloatValue |
3 | 3 | [[#5b26ca80]] | getIntValue |
3 | 4 | [[#5b26ca80]] | getLongValue |