Constructor Summary
Public Constructor | ||
public |
create instance. |
Member Summary
Private Members | ||
private |
_plugins: * |
Method Summary
Public Methods | ||
public |
initialize with plugin property. |
|
public |
handle complete |
|
public |
onHandleAST(ast: AST, filePath: string, code: string): * handle AST. |
|
public |
onHandleCode(code: string, filePath: string): string handle code. |
|
public |
onHandleCodeParser(parser: function(code: string), option: object, filePath: string, code: string): * handle code parser. |
|
public |
onHandleConfig(config: ESDocConfig): ESDocConfig handle config. |
|
public |
onHandleHTML(html: string, fileName: string): string handle HTML. |
|
public |
onHandleTag(tag: Tag): Tag handle tag. |
|
public |
onStart() handle start. |
Private Methods | ||
private |
_execHandler(handlerName: string, ev: PluginEvent, giveOption: boolean) exec plugin handler. |
Public Constructors
Private Members
private _plugins: * source
Public Methods
public init(plugins: Array<{name: string, option: object}>){name:> source
initialize with plugin property.
public onHandleCodeParser(parser: function(code: string), option: object, filePath: string, code: string): * source
handle code parser.
Return:
* |
public onHandleConfig(config: ESDocConfig): ESDocConfig source
handle config.
Params:
Name | Type | Attribute | Description |
config | ESDocConfig | original esdoc config. |
public onHandleTag(tag: Tag): Tag source
handle tag.
Params:
Name | Type | Attribute | Description |
tag | Tag | original tag(s). |
Private Methods
private _execHandler(handlerName: string, ev: PluginEvent, giveOption: boolean) source
exec plugin handler.
Params:
Name | Type | Attribute | Description |
handlerName | string | handler name(e.g. onHandleCode) |
|
ev | PluginEvent | plugin event object. |
|
giveOption | boolean |
|
if true, event has plugin option. |