Home Manual Reference Source Test Repository
public class | source

ModuleMethodReport

Extends:

AbstractReportAggregateMethodReportMethodReport → ModuleMethodReport

Provides the module method report object which stores data pertaining to a single method / function.

Static Method Summary

Static Public Methods
public static

Returns the supported transform formats.

public static

Deserializes a JSON object representing a ModuleMethodReport.

Member Summary

Public Members
public get

Returns the enum for the report type.

Inherited Summary

From class AbstractReport
public get

Returns the associated AggregateMethodReport or this.

public

Stores any associated AggregateMethodReport.

public

Increments the associated aggregate report HalsteadData for distinct identifiers.

public

incrementHalsteadItems(metric: string, identifier: string)

Increments the associated aggregate report Halstead items including distinct and total counts.

public

Increments the associated aggregate report Halstead metric type.

public

Increments the associated aggregate report parameter count.

public

Returns true if a given HalsteadData metric / identifier is not found in the associated aggregate report.

public

toFormat(name: string, options: object): string

Formats this report given the type.

From class AggregateMethodReport
public

The cyclomatic complexity of the method.

public

The cyclomatic density of the method.

public

Stores the Halstead data instance.

public

The number of parameters for the method or aggregate report.

public

sloc: {logical: number, physical: number}

The source lines of code for the method.

From class MethodReport
protected static

Deserializes a JSON object representing a ClassMethodReport.

public

Stores any analysis errors.

public

Stores the end line for the method.

public

Stores the start line for the method.

public

The name of the method.

public

The number of parameters for the method or report.

public

Clears all errors stored in the method report.

public

getErrors(options: object): Array<AnalyzeError | {error: AnalyzeError, source: *}>

Gets all errors stored in the method report.

public

Returns the name / id associated with this report.

Static Public Methods

public static getFormats(): Object[] source

Returns the supported transform formats.

Return:

Object[]

public static parse(object: object): ModuleMethodReport source

Deserializes a JSON object representing a ModuleMethodReport.

Params:

NameTypeAttributeDescription
object object

A JSON object of a ModuleMethodReport that was previously serialized.

Public Members

public get type: ReportType: * source

Returns the enum for the report type.

Return:

ReportType