Class CpdReportGenerator


  • public class CpdReportGenerator
    extends java.lang.Object
    Class that generated the CPD report.
    Version:
    $Id$
    Author:
    mperham
    • Constructor Summary

      Constructors 
      Constructor Description
      CpdReportGenerator​(Sink sink, java.util.Map<java.io.File,​PmdFileInfo> fileMap, java.util.ResourceBundle bundle, boolean aggregate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void beginDocument()
      Method that generates the start of the CPD report.
      void generate​(java.util.List<Duplication> duplications)
      Method that generates the contents of the CPD report
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CpdReportGenerator

        public CpdReportGenerator​(Sink sink,
                                  java.util.Map<java.io.File,​PmdFileInfo> fileMap,
                                  java.util.ResourceBundle bundle,
                                  boolean aggregate)
    • Method Detail

      • beginDocument

        public void beginDocument()
        Method that generates the start of the CPD report.
      • generate

        public void generate​(java.util.List<Duplication> duplications)
        Method that generates the contents of the CPD report
        Parameters:
        duplications - the found duplications