java.lang.Object
edu.hm.hafner.analysis.IssueParser
edu.hm.hafner.analysis.parser.JsonIssueParser
edu.hm.hafner.analysis.parser.OTDockerLintParser
- Alle implementierten Schnittstellen:
Serializable
A parser for ot-docker-linter json output.
- Autor:
- Abhishek Dubey
- Siehe auch:
-
Feldübersicht
Von Klasse geerbte Felder 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 -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanaccepts(ReaderFactory readerFactory) Returns whether this parser accepts the specified file as valid input.protected voidparseJsonArray(Report report, org.json.JSONArray jsonReport, IssueBuilder issueBuilder) Parses the specified JSON object and populates the provided report with all issues.protected voidparseJsonObject(Report report, org.json.JSONObject jsonIssue, IssueBuilder issueBuilder) Parses the specified JSON object and populates the provided report with all issues.Von Klasse geerbte Methoden edu.hm.hafner.analysis.parser.JsonIssueParser
parseVon Klasse geerbte Methoden edu.hm.hafner.analysis.IssueParser
equalsIgnoreCase, isXmlFile, parseFile
-
Konstruktordetails
-
OTDockerLintParser
public OTDockerLintParser()
-
-
Methodendetails
-
accepts
Beschreibung aus Klasse kopiert: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.- Setzt außer Kraft:
acceptsin KlasseJsonIssueParser- Parameter:
readerFactory- provides a reader to the reports- Gibt zurück:
trueif this parser accepts this file as valid input, orfalseif the file could not be parsed by this parser
-
parseJsonArray
protected void parseJsonArray(Report report, org.json.JSONArray jsonReport, IssueBuilder issueBuilder) Beschreibung aus Klasse kopiert:JsonIssueParserParses the specified JSON object and populates the provided report with all issues.- Setzt außer Kraft:
parseJsonArrayin KlasseJsonIssueParser- Parameter:
report- the report to filljsonReport- the input JSON report given as JSON arrayissueBuilder- build to be used to create issues
-
parseJsonObject
protected void parseJsonObject(Report report, org.json.JSONObject jsonIssue, IssueBuilder issueBuilder) Beschreibung aus Klasse kopiert:JsonIssueParserParses the specified JSON object and populates the provided report with all issues.- Setzt außer Kraft:
parseJsonObjectin KlasseJsonIssueParser- Parameter:
report- the report to filljsonIssue- the input JSON report given as JSON objectissueBuilder- build to be used to create issues
-