Class CoverageParser

    • Constructor Detail

      • CoverageParser

        public CoverageParser()
    • Method Detail

      • parse

        public ModuleNode parse​(Reader reader,
                                edu.hm.hafner.util.FilteredLog log)
        Parses a report provided by the given reader.
        Parameters:
        reader - the reader with the coverage information
        log - the logger to write messages to
        Returns:
        the root of the created tree
        Throws:
        edu.hm.hafner.util.SecureXmlParserFactory.ParsingException - if the XML content cannot be read
      • readResolve

        protected Object readResolve()
        Called after de-serialization to restore transient fields.
        Returns:
        this
      • getTreeStringBuilder

        public final edu.hm.hafner.util.TreeStringBuilder getTreeStringBuilder()
      • parseReport

        protected abstract ModuleNode parseReport​(Reader reader,
                                                  edu.hm.hafner.util.FilteredLog log)
        Parses a report provided by the given reader.
        Parameters:
        reader - the reader with the coverage information
        log - the logger to write messages to
        Returns:
        the root of the created tree
        Throws:
        edu.hm.hafner.util.SecureXmlParserFactory.ParsingException - if the XML content cannot be read
      • getIntegerValueOf

        protected static int getIntegerValueOf​(StartElement element,
                                               QName attributeName)
      • parseInteger

        protected static int parseInteger​(String value)
      • createEofException

        protected static edu.hm.hafner.util.SecureXmlParserFactory.ParsingException createEofException()