Class ClassPage

  • All Implemented Interfaces:
    ILinkable, ITableItem

    public class ClassPage
    extends TablePage<IClassCoverage>
    Page showing coverage information for a class as a table of methods. The methods are linked to the corresponding source file.
    • Constructor Detail

      • ClassPage

        public ClassPage​(IClassCoverage classNode,
                         ReportPage parent,
                         ILinkable sourcePage,
                         ReportOutputFolder folder,
                         IHTMLReportContext context)
        Creates a new visitor in the given context.
        Parameters:
        classNode - coverage data for this class
        parent - optional hierarchical parent
        sourcePage - corresponding source page or null
        folder - base folder to create this page in
        context - settings context
    • Method Detail

      • getOnload

        protected java.lang.String getOnload()
        Description copied from class: ReportPage
        Returns the onload handler for this page.
        Overrides:
        getOnload in class ReportPage
        Returns:
        handler or null
      • render

        public void render()
                    throws java.io.IOException
        Description copied from class: ReportPage
        Renders this page's content and optionally additional pages. This method must be called at most once.
        Overrides:
        render in class ReportPage
        Throws:
        java.io.IOException - if the page can't be written
      • getFileName

        protected java.lang.String getFileName()
        Description copied from class: ReportPage
        Specifies the local file name of this page.
        Specified by:
        getFileName in class ReportPage
        Returns:
        local file name
      • content

        protected void content​(HTMLElement body)
                        throws java.io.IOException
        Description copied from class: ReportPage
        Creates the actual content of the page.
        Overrides:
        content in class TablePage<IClassCoverage>
        Parameters:
        body - body tag of the page
        Throws:
        java.io.IOException - in case of IO problems with the report writer