Class CPD


  • @Deprecated
    public class CPD
    extends Object
    Deprecated.
    This class is to be removed in PMD 7 in favor of a unified PmdCli entry point.
    • Method Detail

      • setCpdListener

        public void setCpdListener​(CPDListener cpdListener)
        Deprecated.
      • go

        public void go()
        Deprecated.
      • getSourcePaths

        public List<String> getSourcePaths()
        Deprecated.
        List names/paths of each source to be processed.
        Returns:
        names of sources to be processed
      • getSources

        public List<SourceCode> getSources()
        Deprecated.
        Get each Source to be processed.
        Returns:
        all Sources to be processed
      • main

        public static void main​(String[] args)
        Deprecated.
        Entry to invoke CPD as command line tool. Note that this will invoke System.exit(int).
        Parameters:
        args - command line arguments
      • runCpd

        public static CPD.StatusCode runCpd​(String... args)
        Deprecated.
        Parses the command line and executes CPD. Returns the status code without exiting the VM.
        Parameters:
        args - command line arguments
        Returns:
        the status code
      • toReport

        public CPDReport toReport()
        Deprecated.