Class ReportMethodIndexWriter
java.lang.Object
org.matwoess.jsourceprofiler.tool.profile.AbstractHtmlWriter
org.matwoess.jsourceprofiler.tool.profile.ReportMethodIndexWriter
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.
-
Field Summary
Fields inherited from class org.matwoess.jsourceprofiler.tool.profile.AbstractHtmlWriter
bodyScripts, cssFiles, includeScripts, title -
Constructor Summary
ConstructorsConstructorDescriptionReportMethodIndexWriter(JClass clazz, JavaFile javaFile) Creates a newReportMethodIndexWriterobject. -
Method Summary
Modifier and TypeMethodDescriptionvoidbody()Generates the main content of the HTML document by callingsortedMethodTable().Returns the path to the HTML file to write to by callingIO.getReportMethodIndexPath(String)for the current class name.voidAppends a table of all methods sorted by the number of invocations to the internalcontent.
-
Constructor Details
-
ReportMethodIndexWriter
Creates a newReportMethodIndexWriterobject.- Parameters:
clazz- the java class to write the method index forjavaFile- the java file containing the class
-
-
Method Details
-
body
public void body()Generates the main content of the HTML document by callingsortedMethodTable().- Specified by:
bodyin classAbstractHtmlWriter
-
sortedMethodTable
public void sortedMethodTable()Appends a table of all methods sorted by the number of invocations to the internalcontent. -
getFileOutputPath
Returns the path to the HTML file to write to by callingIO.getReportMethodIndexPath(String)for the current class name.- Specified by:
getFileOutputPathin classAbstractHtmlWriter- Returns:
- the path to the HTML file to write the method index to
-