Class ReportMethodIndexWriter

java.lang.Object
org.matwoess.jsourceprofiler.tool.profile.AbstractHtmlWriter
org.matwoess.jsourceprofiler.tool.profile.ReportMethodIndexWriter

public class ReportMethodIndexWriter extends AbstractHtmlWriter
The writer class for the method index overview page of a java class. This page lists all methods of a class sorted by the number of invocations.
  • Constructor Details

    • ReportMethodIndexWriter

      public ReportMethodIndexWriter(JClass clazz, JavaFile javaFile)
      Creates a new ReportMethodIndexWriter object.
      Parameters:
      clazz - the java class to write the method index for
      javaFile - the java file containing the class
  • Method Details

    • body

      public void body()
      Generates the main content of the HTML document by calling sortedMethodTable().
      Specified by:
      body in class AbstractHtmlWriter
    • sortedMethodTable

      public void sortedMethodTable()
      Appends a table of all methods sorted by the number of invocations to the internal content.
    • getFileOutputPath

      public Path getFileOutputPath()
      Returns the path to the HTML file to write to by calling IO.getReportMethodIndexPath(String) for the current class name.
      Specified by:
      getFileOutputPath in class AbstractHtmlWriter
      Returns:
      the path to the HTML file to write the method index to