Home Manual Reference Source Test Repository
import ClassDoc from 'esdoc/src/Doc/ClassDoc.js'
public class | source

ClassDoc

Extends:

AbstractDoc → ClassDoc

Doc Class from Class Declaration AST node.

Test:

Method Summary

Public Methods
public

specify class to kind.

public

take out self memberof from file path.

public

take out self name from self node

public

for @extends, does not need to use this tag.

public

for @implements

public

for @interface

Private Methods
private

_apply()

apply own tag.

private

_readSelection(filePath: string, line: number, startColumn: number, endColumn: number): string

read selection text in file.

Inherited Summary

From class AbstractDoc
public get
private

_ast: *

private
private

_node: *

private
private

_value: *

public

for @_content, does not need to use this tag

public

for @_export, does not need to use this tag

public

for @_generator, does not need to use this tag

public

for @_importPath, does not need to use this tag

public

for @_importStyle, does not need to use this tag

public

for @_kind, does not need to use this tag

public

for @_lineNumber, does not need to use this tag

public

for @_longname, does not need to use this tag

public

for @_member.

public

for @_memberof, does not need to use this tag

public

for @_name, does not need to use this tag

public

for @_pseudoExport, does not need to use this tag.

public

for @_static, does not need to use this tag

public

for @_undocument, does not need to use this tag

public

for @_unknown, does not need to use this tag

public

for @_variation

public

for @abstract.

public

for @access, @public, @private, @protected

public

for @deprecated

public

for @desc

public

for @emits.

public

for @example.

public

for @experimental

public

for @ignore.

public

for @listens.

public

for @voerride.

public

for @param.

public

for @private

public

for @property.

public

for @protected

public

for @public

public

for @return, @returns.

public

for @see.

public

for @since

public

for @throws.

public

for @todo.

public

for @type.

public

for @version

private

_apply()

apply doc comment.

private

_find(names: string[]): Tag | null

find last tag.

private

_findAll(names: string[]): Tag[] | null

find all tags.

private

_findAllTagValues(names: string[]): *[] | null

find all tag values.

private

find class in same file, import or external.

private

_findTagValue(names: string[]): * | null

find ta value.

private

flatten member expression property name.

private

resolve long name.

Public Methods

public ['@_kind']() source

specify class to kind.

Override:

AbstractDoc#['@_kind']

public ['@_memberof']() source

take out self memberof from file path.

Override:

AbstractDoc#['@_memberof']

public ['@_name']() source

take out self name from self node

Override:

AbstractDoc#['@_name']

public ['@extends']() source

for @extends, does not need to use this tag.

public ['@implements']() source

for @implements

public ['@interface']() source

for @interface

Private Methods

private _apply() source

apply own tag.

Override:

AbstractDoc#_apply

private _readSelection(filePath: string, line: number, startColumn: number, endColumn: number): string source

read selection text in file.

Params:

NameTypeAttributeDescription
filePath string

target file full path.

line number

line number (one origin).

startColumn number

start column number (one origin).

endColumn number

end column number (one origin).

Return:

string

selection text