Class SourceFile
- java.lang.Object
-
- edu.hm.hafner.analysis.parser.dry.cpd.SourceFile
-
public class SourceFile extends Object
Java Bean class for a file of the PMD CPD format.- Author:
- Ullrich Hafner
-
-
Constructor Summary
Constructors Constructor Description SourceFile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLine()Returns the line of the duplication.StringgetPath()Returns the path of this file.voidsetLine(int line)Sets the line of the duplication to the specified value.voidsetPath(String path)Sets the path of this file to the specified value.
-
-
-
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
-
-