Class ClassHtmlBuilder

Build the html page for a class

Source : file ClassHtmlBuilder.js at line 39

Constructor

new ClassHtmlBuilder ( )

The constructor

Source : file ClassHtmlBuilder.js at line 80

Public getters and setters

readonly get classesCounter : Number

A classes files counter

Source : file ClassHtmlBuilder.js at line 305

Public methods

build ( classDoc )

Build the html for a complete class

Source : file ClassHtmlBuilder.js at line 312

Parameters

Name Type Description
classDoc ClassDoc

The object with the class documentation

Private properties

#classesCounter : Number

A classes files counter

Source : file ClassHtmlBuilder.js at line 46

#className : String

The name of the class currently treated

Source : file ClassHtmlBuilder.js at line 53

#html : String

The html with the class documentation

Source : file ClassHtmlBuilder.js at line 60

#methodsOrPropertiesDoc : Array of MethodOrPropertyDoc

A array with the methods or properties that must be currently added to the html

Source : file ClassHtmlBuilder.js at line 74

#rootPath : String

The path between the html file and theConfig.destDir ( something like '../../../', depending of the folders tree )

Source : file ClassHtmlBuilder.js at line 67

Private methods

#buildMethodOrProperty ( methodOrPropertyDoc )

Build the html for a method or property

Source : file ClassHtmlBuilder.js at line 205

Parameters

Name Type Description
methodOrPropertyDoc MethodOrPropertyDoc

The object with the extracted documentation for the method or property

#buildMethodOrPropertyHeader ( methodOrPropertyDoc )

Build the html for a method or property header

Source : file ClassHtmlBuilder.js at line 135

Parameters

Name Type Description
methodOrPropertyDoc MethodOrPropertyDoc

The object with the extracted documentation for the method or property

#buildMethodsAndProperties ( heading )

Build the html for methods and properties

Source : file ClassHtmlBuilder.js at line 284

Parameters

Name Type Description
heading String

The header to add in the #html property before the methods and properties

#buildParamsHeader ( methodOrPropertyDoc )

Build a string with the parameters from a MethodOrPropertyDoc object and enclose the string in ( ). Parameters names are extracted from the code.

Source : file ClassHtmlBuilder.js at line 118

Parameters

Name Type Description
methodOrPropertyDoc MethodOrPropertyDoc

The object with the extracted documentation for the method

Returns

A string with the parameters
Type : String

#buildParamsTable ( methodOrPropertyDoc )

Build an html table with the parameters from a MethodOrPropertyDoc object and include this table in the #html property. Parameters names are extracted from the code and parameters types and descriptions are extracted from the comments

Source : file ClassHtmlBuilder.js at line 92

Parameters

Name Type Description
methodOrPropertyDoc MethodOrPropertyDoc

The object with the extracted documentation for the method