java.lang.Object
edu.hm.hafner.analysis.IssueParser
edu.hm.hafner.analysis.parser.JsonIssueParser
edu.hm.hafner.analysis.parser.FlowParser
- All Implemented Interfaces:
Serializable
A parser for Flow warnings.
- Author:
- PCTao
- See Also:
-
Field Summary
Fields inherited from class edu.hm.hafner.analysis.IssueParser
ADDITIONAL_PROPERTIES, CATEGORY, COLUMN_END, COLUMN_START, DESCRIPTION, FILE_NAME, FINGERPRINT, ID, LINE_END, LINE_RANGE_END, LINE_RANGE_START, LINE_RANGES, LINE_START, MESSAGE, MODULE_NAME, ORIGIN, PACKAGE_NAME, SEVERITY, TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepts(ReaderFactory readerFactory) Returns whether this parser accepts the specified file as valid input.protected voidparseJsonObject(Report report, org.json.JSONObject jsonReport, IssueBuilder issueBuilder) Parses the specified JSON object and populates the provided report with all issues.Methods inherited from class edu.hm.hafner.analysis.parser.JsonIssueParser
parse, parseJsonArrayMethods inherited from class edu.hm.hafner.analysis.IssueParser
equalsIgnoreCase, isXmlFile, parseFile
-
Constructor Details
-
FlowParser
public FlowParser()
-
-
Method Details
-
accepts
Description copied from class:IssueParserReturns whether this parser accepts the specified file as valid input. Parsers may reject a file if it is in the wrong format to avoid exceptions during parsing.- Overrides:
acceptsin classJsonIssueParser- Parameters:
readerFactory- provides a reader to the reports- Returns:
trueif this parser accepts this file as valid input, orfalseif the file could not be parsed by this parser
-
parseJsonObject
protected void parseJsonObject(Report report, org.json.JSONObject jsonReport, IssueBuilder issueBuilder) Description copied from class:JsonIssueParserParses the specified JSON object and populates the provided report with all issues.- Overrides:
parseJsonObjectin classJsonIssueParser- Parameters:
report- the report to filljsonReport- the input JSON report given as JSON objectissueBuilder- build to be used to create issues
-