public class ClocReport extends Object implements Serializable
Constructor and Description |
---|
ClocReport()
This constructor is required by JAXB.
|
ClocReport(ClocHeader header,
ClocFiles files)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ClocFiles |
getFiles() |
ClocHeader |
getHeader() |
static ClocReport |
parse(File file)
Parse one input file.
|
void |
toSloccountReport(SloccountReportInterface report,
boolean commentIsCode)
Convert cloc report to SLOCCount report representation used in the plugin.
|
public ClocReport(ClocHeader header, ClocFiles files)
header
- headerfiles
- filespublic ClocReport()
public ClocHeader getHeader()
public ClocFiles getFiles()
public static ClocReport parse(File file) throws JAXBException
file
- the file to be parsedJAXBException
- if a XML related error occurspublic void toSloccountReport(SloccountReportInterface report, boolean commentIsCode) throws JAXBException
report
- output reportcommentIsCode
- include comments to the measured linesJAXBException
- if the report has unexpected structureCopyright © 2016–2022. All rights reserved.