Class AstreeReportParser

java.lang.Object
edu.hm.hafner.analysis.IssueParser
com.absint.astree.AstreeReportParser
All Implemented Interfaces:
Serializable

public class AstreeReportParser extends edu.hm.hafner.analysis.IssueParser
Parser for AbsInt Astree XML reports.
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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accepts(edu.hm.hafner.analysis.ReaderFactory readerFactory)
    Check if file format is acceptable.
    edu.hm.hafner.analysis.Report
    parse(edu.hm.hafner.analysis.ReaderFactory readerFactory)
    Parse a AbsInt Astree XML report.

    Methods inherited from class edu.hm.hafner.analysis.IssueParser

    equalsIgnoreCase, isXmlFile, parseFile

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AstreeReportParser

      public AstreeReportParser()
  • Method Details

    • accepts

      public boolean accepts(edu.hm.hafner.analysis.ReaderFactory readerFactory)
      Check if file format is acceptable.
      Overrides:
      accepts in class edu.hm.hafner.analysis.IssueParser
      Parameters:
      readerFactory - factory to read XML document
      Returns:
      true if file is acceppted by this parser or false if not
    • parse

      public edu.hm.hafner.analysis.Report parse(edu.hm.hafner.analysis.ReaderFactory readerFactory) throws edu.hm.hafner.analysis.ParsingException
      Parse a AbsInt Astree XML report.
      Specified by:
      parse in class edu.hm.hafner.analysis.IssueParser
      Parameters:
      readerFactory - factory to read XML document
      Returns:
      report with parsed information
      Throws:
      edu.hm.hafner.analysis.ParsingException