Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 2 | 2 | 0.985 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 117 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/fragments/AssociativeInfixExpressionFragment.java |
2 | 4 | 122 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/fragments/AssociativeInfixExpressionFragment.java |
| ||||
private static boolean rangeStartsBetween(SourceRange range, ASTNode first, ASTNode next) { int pos = range.getOffset(); return first.getStartPosition() + first.getLength() <= pos && pos <= next.getStartPosition(); } |
| ||||
private static boolean rangeEndsBetween(SourceRange range, ASTNode first, ASTNode next) { int pos = range.getEndExclusive(); return first.getStartPosition() + first.getLength() <= pos && pos <= next.getStartPosition(); } |
| |||
private static boolean [[#variableb18ea3a0]](SourceRange range, ASTNode first, ASTNode next) { int pos = range. [[#variableb18ea340]](); return first.getStartPosition() + first.getLength() <= pos && pos <= next.getStartPosition(); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b18ea3a0]] | rangeStartsBetween |
1 | 2 | [[#b18ea3a0]] | rangeEndsBetween |
2 | 1 | [[#b18ea340]] | getOffset |
2 | 2 | [[#b18ea340]] | getEndExclusive |