Packages

More...

Functions

void
activatePackage(String packageName)

Activates an existing package.

void
deactivatePackage(String packageName)

Deactivates a previously activated package.

string
getFunctionPackage(string funcName)

Provides the name of the package the function belongs to.

string
getMethodPackage(string nameSpace, string method)

Provides the name of the package the method belongs to.

string

Returns a space delimited list of the active packages in stack order.

bool
isPackage(String identifier)

Returns true if the identifier is the name of a declared package.

Detailed Description

Functions

activatePackage(String packageName)

Activates an existing package.

The activation occurs by updating the namespace linkage of existing functions and methods. If the package is already activated the function does nothing.

deactivatePackage(String packageName)

Deactivates a previously activated package.

The package is deactivated by removing its namespace linkages to any function or method. If there are any packages above this one in the stack they are deactivated as well. If the package is not on the stack this function does nothing.

getFunctionPackage(string funcName)

Provides the name of the package the function belongs to.

Parameters:

funcName

String containing name of the function

return:

The name of the function's package

getMethodPackage(string nameSpace, string method)

Provides the name of the package the method belongs to.

Parameters:

namespace

Class or namespace, such as Player

method

Name of the funciton to search for

return:

The name of the method's package

getPackageList()

Returns a space delimited list of the active packages in stack order.

isPackage(String identifier)

Returns true if the identifier is the name of a declared package.