Home Manual Reference Source Test Repository
public class | source

AggregateMethodReport

Extends:

AbstractReport → AggregateMethodReport

Direct Subclass:

MethodReport, MethodReport

Provides the aggregate report object which stores base data pertaining to a single method / function or cumulative aggregate data for a ModuleReport / ClassReport.

Constructor Summary

Public Constructor
public

constructor(lineStart: number, lineEnd: number)

Initializes aggregate report.

Member Summary

Public Members
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.

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.

Public Constructors

public constructor(lineStart: number, lineEnd: number) source

Initializes aggregate report.

Override:

AbstractReport#constructor

Params:

NameTypeAttributeDescription
lineStart number

Start line of method.

lineEnd number

End line of method.

Public Members

public cyclomatic: number source

The cyclomatic complexity of the method.

public cyclomaticDensity: number source

The cyclomatic density of the method.

public halstead: HalsteadData source

Stores the Halstead data instance.

public params: number source

The number of parameters for the method or aggregate report.

public sloc: {logical: number, physical: number} source

The source lines of code for the method.