Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 3 | 0 | 1.000 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 116 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaHeuristicScanner.java |
2 | 15 | 162 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaHeuristicScanner.java |
3 | 15 | 215 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaHeuristicScanner.java |
| ||||
/* * @see org.eclipse.jdt.internal.ui.text.JavaHeuristicScanner.StopCondition#nextPosition(int, boolean) */ public int nextPosition(int position, boolean forward) { ITypedRegion partition = getPartition(position); if (fPartition.equals(partition.getType())) return super.nextPosition(position, forward); if (forward) { int end = partition.getOffset() + partition.getLength(); if (position < end) return end; } else { int offset = partition.getOffset(); if (position > offset) return offset - 1; } return super.nextPosition(position, forward); } |
| ||||
/* * @see org.eclipse.jdt.internal.ui.text.JavaHeuristicScanner.StopCondition#nextPosition(int, boolean) */ public int nextPosition(int position, boolean forward) { ITypedRegion partition = getPartition(position); if (fPartition.equals(partition.getType())) return super.nextPosition(position, forward); if (forward) { int end = partition.getOffset() + partition.getLength(); if (position < end) return end; } else { int offset = partition.getOffset(); if (position > offset) return offset - 1; } return super.nextPosition(position, forward); } |
| ||||
/* * @see org.eclipse.jdt.internal.ui.text.JavaHeuristicScanner.StopCondition#nextPosition(int, boolean) */ public int nextPosition(int position, boolean forward) { ITypedRegion partition = getPartition(position); if (fPartition.equals(partition.getType())) return super.nextPosition(position, forward); if (forward) { int end = partition.getOffset() + partition.getLength(); if (position < end) return end; } else { int offset = partition.getOffset(); if (position > offset) return offset - 1; } return super.nextPosition(position, forward); } |
| |||
/* * @see org.eclipse.jdt.internal.ui.text.JavaHeuristicScanner.StopCondition#nextPosition(int, boolean) */ public int nextPosition(int position, boolean forward) { ITypedRegion partition = getPartition(position); if (fPartition.equals(partition.getType())) return super.nextPosition(position, forward); if (forward) { int end = partition.getOffset() + partition.getLength(); if (position < end) return end; } else { int offset = partition.getOffset(); if (position > offset) return offset - 1; } return super.nextPosition(position, forward); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |