org.sonar.duplications.internal.pmd
Class PmdBlockChunker

java.lang.Object
  extended by org.sonar.duplications.internal.pmd.PmdBlockChunker

public class PmdBlockChunker
extends Object

Differences with BlockChunker: works with TokensLine, sets startUnit and endUnit - indexes of first and last token for this block.


Constructor Summary
PmdBlockChunker(int blockSize)
           
 
Method Summary
 List<Block> chunk(String resourceId, List<org.sonar.duplications.internal.pmd.TokensLine> fragments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PmdBlockChunker

public PmdBlockChunker(int blockSize)
Method Detail

chunk

public List<Block> chunk(String resourceId,
                         List<org.sonar.duplications.internal.pmd.TokensLine> fragments)


Copyright © 2009-2012 SonarSource. All Rights Reserved.