Class SourceFile


  • public class SourceFile
    extends Object
    Java Bean class for a file of the PMD CPD format.
    Author:
    Ullrich Hafner
    • Constructor Detail

      • SourceFile

        public SourceFile()
    • Method Detail

      • getPath

        @CheckForNull
        public String getPath()
        Returns the path of this file.
        Returns:
        the path of this file
      • setPath

        public void setPath​(@CheckForNull
                            String path)
        Sets the path of this file to the specified value.
        Parameters:
        path - the value to set
      • getLine

        public int getLine()
        Returns the line of the duplication.
        Returns:
        the line of the duplication
      • setLine

        public void setLine​(int line)
        Sets the line of the duplication to the specified value.
        Parameters:
        line - the value to set