Klasse SimianParser
java.lang.Object
edu.hm.hafner.analysis.IssueParser
edu.hm.hafner.analysis.parser.dry.AbstractDryParser<Set>
edu.hm.hafner.analysis.parser.dry.simian.SimianParser
- Alle implementierten Schnittstellen:
Serializable
A parser for Simian XML files.
- Autor:
- Ullrich Hafner
- 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
KonstruktorenKonstruktorBeschreibungCreates a new instance ofSimianParser.SimianParser(int highThreshold, int normalThreshold) Creates a new instance ofSimianParser. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected voidconfigureParser(org.apache.commons.digester3.Digester digester) Configures the Digester parser.protected ReportconvertDuplicationsToIssues(List<Set> duplications, IssueBuilder issueBuilder) Converts the parsed duplications from the original format to anReportinstance.Von Klasse geerbte Methoden edu.hm.hafner.analysis.parser.dry.AbstractDryParser
getPriority, parseVon Klasse geerbte Methoden edu.hm.hafner.analysis.IssueParser
accepts, equalsIgnoreCase, isXmlFile, parseFile
-
Konstruktordetails
-
SimianParser
public SimianParser(int highThreshold, int normalThreshold) Creates a new instance ofSimianParser.- Parameter:
highThreshold- minimum number of duplicate lines for high priority warningsnormalThreshold- minimum number of duplicate lines for normal priority warnings
-
SimianParser
public SimianParser()Creates a new instance ofSimianParser. ThehighThresholdis set to 50, thenormalThresholdis set to 25.
-
-
Methodendetails
-
configureParser
protected void configureParser(org.apache.commons.digester3.Digester digester) Beschreibung aus Klasse kopiert:AbstractDryParserConfigures the Digester parser. Register all rules that are required to parse the file.- Angegeben von:
configureParserin KlasseAbstractDryParser<Set>- Parameter:
digester- the parser to configure
-
convertDuplicationsToIssues
Beschreibung aus Klasse kopiert:AbstractDryParserConverts the parsed duplications from the original format to anReportinstance.- Angegeben von:
convertDuplicationsToIssuesin KlasseAbstractDryParser<Set>- Parameter:
duplications- the parsed warningsissueBuilder- the issue builder to use- Gibt zurück:
- the converted warnings
-