Package edu.hm.hafner.analysis.parser
Class EclipseXMLParser
- java.lang.Object
-
- edu.hm.hafner.analysis.IssueParser
-
- edu.hm.hafner.analysis.parser.EclipseXMLParser
-
- All Implemented Interfaces:
Serializable
public class EclipseXMLParser extends IssueParser
Parser for Eclipse Compiler output in XML format.- Author:
- Jason Faust
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EclipseXMLParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccepts(ReaderFactory readerFactory)Returns whether this parser accepts the specified file as valid input.Reportparse(ReaderFactory readerFactory)Parses the specified file for issues.-
Methods inherited from class edu.hm.hafner.analysis.IssueParser
equalsIgnoreCase, isXmlFile, parseFile
-
-
-
-
Method Detail
-
accepts
public boolean accepts(ReaderFactory readerFactory)
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 classIssueParser- 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
-
parse
public Report parse(ReaderFactory readerFactory) throws ParsingException
Description copied from class:IssueParserParses the specified file for issues.- Specified by:
parsein classIssueParser- Parameters:
readerFactory- provides a reader to the reports- Returns:
- the issues
- Throws:
ParsingException- Signals that during parsing a non recoverable error has been occurred
-
-