Class ClassHtmlBuilder

Build the html page for a class

Source : file ClassHtmlBuilder.js at line 44

Constructor

new ClassHtmlBuilder ( )

The constructor

Source : file ClassHtmlBuilder.js at line 85

Public getters and setters

readonly get classesCounter : Number

A classes files counter

Source : file ClassHtmlBuilder.js at line 312

Public methods

build ( classDoc )

Build the html for a complete class

Source : file ClassHtmlBuilder.js at line 319

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 51

#className : String

The name of the class currently treated

Source : file ClassHtmlBuilder.js at line 58

#html : String

The html with the class documentation

Source : file ClassHtmlBuilder.js at line 65

#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 79

#rootPath : String

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

Source : file ClassHtmlBuilder.js at line 72

Private methods

#buildMethodOrProperty ( methodOrPropertyDoc )

Build the html for a method or property

Source : file ClassHtmlBuilder.js at line 212

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 141

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 291

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 123

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 97

Parameters

Name Type Description
methodOrPropertyDoc MethodOrPropertyDoc

The object with the extracted documentation for the method