Methods

static
defineType(plugin, type)

Defines type of a plug-in. Required in plug-in definition.

Parameters

Name Type Optional Description

plugin

WAPL

 

Target plug-in.

type

String

 

Plug-in type. ['Generator', 'Processor', 'Analyzer']

static
extendPrototype(plugin, type)

Extends plug-in prototype according to the type. Required in plug-in definition.

Parameters

Name Type Optional Description

plugin

WAPL

 

Target plug-in.

type

String

 

Plug-in type. ['Generator', 'Processor', 'Analyzer']

static
getRegistered(type) → Array

Returns a list of regsitered plug-ins of a certain type.

Parameter

Name Type Optional Description

type

String

 

Plug-in Type.

Returns

Array A list of plug-ins.

static
initPreset(plugin, preset)

Initializes plug-in preset. Merges default preset with user-defined preset. Required in plug-in definition.

Parameters

Name Type Optional Description

plugin

WAPL

 

Target plug-in.

preset

Object

 

Preset.

static
register(PlugInClass)

Registers the plug-in prototype to WX namespace. Required in plug-in definition.

Parameter

Name Type Optional Description

PlugInClass

function()

 

Class reference (function name) of plug-in.