Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 2 | 5 | 0.970 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 19 | 119 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/BinaryExpressionFragmentBuilder.java |
2 | 16 | 357 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/BinaryExpressionFragmentBuilder.java |
| ||||
public boolean visit( AND_AND_Expression and_and_Expression, BlockScope scope) { if (((and_and_Expression.bits& ASTNode.ParenthesizedMASK) >> ASTNode.ParenthesizedSHIFT) != 0) { addRealFragment(and_and_Expression); } else { and_and_Expression.left.traverse(this, scope); this.operatorsList.add(new Integer(TerminalTokens.TokenNameAND_AND)); and_and_Expression.right.traverse(this, scope); } return false; } public boolean visit( ArrayAllocationExpression arrayAllocationExpression, BlockScope scope) { this.addRealFragment(arrayAllocationExpression); return false; } |
| ||||
public boolean visit(OR_OR_Expression or_or_Expression, BlockScope scope) { if (((or_or_Expression.bits& ASTNode.ParenthesizedMASK) >> ASTNode.ParenthesizedSHIFT) != 0) { addRealFragment(or_or_Expression); } else { or_or_Expression.left.traverse(this, scope); this.operatorsList.add(new Integer(TerminalTokens.TokenNameOR_OR)); or_or_Expression.right.traverse(this, scope); } return false; } public boolean visit( PostfixExpression postfixExpression, BlockScope scope) { this.addRealFragment(postfixExpression); return false; } |
| |||
public boolean visit( [[#variable96150660]] [[#variable96150600]], BlockScope scope) { if ((( [[#variable96150600]].bits&ASTNode.ParenthesizedMASK) >> ASTNode.ParenthesizedSHIFT) != 0) { addRealFragment( [[#variable96150600]]); } else { [[#variable96150600]].left.traverse(this, scope); this.operatorsList.add(new Integer(TerminalTokens. [[#variableb9fc07c0]])); [[#variable96150600]].right.traverse(this, scope); } return false; } public boolean visit( [[#variable961505a0]] [[#variable96150580]], BlockScope scope) { this.addRealFragment( [[#variable96150580]]); return false; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#96150660]] | OR_OR_Expression |
1 | 2 | [[#96150660]] | AND_AND_Expression |
2 | 1 | [[#96150600]] | or_or_Expression |
2 | 2 | [[#96150600]] | and_and_Expression |
3 | 1 | [[#b9fc07c0]] | TokenNameOR_OR |
3 | 2 | [[#b9fc07c0]] | TokenNameAND_AND |
4 | 1 | [[#961505a0]] | PostfixExpression |
4 | 2 | [[#961505a0]] | ArrayAllocationExpression |
5 | 1 | [[#96150580]] | postfixExpression |
5 | 2 | [[#96150580]] | arrayAllocationExpression |