org.sonar.duplications.detector.original
Class OriginalCloneDetectionAlgorithm

java.lang.Object
  extended by org.sonar.duplications.detector.original.OriginalCloneDetectionAlgorithm

public final class OriginalCloneDetectionAlgorithm
extends Object

Implementation of algorithm described in paper Index-Based Code Clone Detection: Incremental, Distributed, Scalable by Benjamin Hummel, Elmar Juergens, Michael Conradt and Lars Heinemann.


Method Summary
static List<CloneGroup> detect(CloneIndex cloneIndex, Collection<Block> fileBlocks)
          Performs detection and returns list of clone groups between file (which represented as a collection of blocks) and index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

detect

public static List<CloneGroup> detect(CloneIndex cloneIndex,
                                      Collection<Block> fileBlocks)
Performs detection and returns list of clone groups between file (which represented as a collection of blocks) and index. Note that this method ignores blocks for this file, that will be retrieved from index.



Copyright © 2009-2012 SonarSource. All Rights Reserved.