Package net.sourceforge.pmd.cpd
Class CPDReport
java.lang.Object
net.sourceforge.pmd.cpd.CPDReport
The result of a CPD analysis. This is rendered by a
CPDReportRenderer.- Since:
- 6.48.0
-
Method Summary
Modifier and TypeMethodDescriptionfilterMatches(Predicate<Match> filter) Creates a new CPD report taking all the information from this report, but filtering the matches.getDisplayName(FileId fileId) Return the display name of the given file.getLanguageVersion(FileId fileId) Return theLanguageVersionof the fileIdReturn the list of duplication matches found by the CPD analysis.Return a map containing the number of tokens by processed file.Returns the list of occurred processing errors.getSourceCodeSlice(Mark mark) Return the slice of source code where the mark was found.
-
Method Details
-
getMatches
Return the list of duplication matches found by the CPD analysis. -
getNumberOfTokensPerFile
Return a map containing the number of tokens by processed file. -
getProcessingErrors
Returns the list of occurred processing errors. -
getSourceCodeSlice
Return the slice of source code where the mark was found. This returns the entire lines from the start to the end line of the mark. -
filterMatches
Creates a new CPD report taking all the information from this report, but filtering the matches. Note that the token count map is not filtered.- Parameters:
filter- when true, the match will be kept.- Returns:
- copy of this report
-
getDisplayName
Return the display name of the given file. -
getLanguageVersion
Return theLanguageVersionof the fileId- Since:
- 7.25.0
-