From RTSC-Pedia

Jump to: navigation, search
revision tip
—— LANDSCAPE orientation
[printable version]  [offline version]offline version generated on 04-Aug-2010 21:08 UTC

XDCscript - xdc.module

Return specified module or interface object

Contents

Synopsis

 
var moduleOrInterfaceObj = xdc.module(moduleOrInterfaceName);

Parameters

moduleOrInterfaceName 
the fully qualified module name of the module or interface to be loaded; e.g., "xdc.runtime.Memory" or "xdc.runtime.IHeap".

Description

xdc.module() loads the specified module or interface and returns .

Examples

To get the module object associated with the xdc.runtime.Log, the following statement should be added to the

 
var Log = xdc.module("xdc.runtime.Log");

Return Value

xdc.useModule() returns a module object or throws an exception if

  • the package containing the module or interface can not be found, or
  • the module or interface is not in the specified package.

Throws

This method may throw an xdc.services.global.XDCException exception with one of the following ids:

  • "xdc.PACKAGE_NOT_FOUND" - in the event that the specified package can not be found or its IDL files have not been compiled.
  • "xdc.MODULE_NOT_FOUND" - in the event that the module can not be found in the specified package.
[printable version]  [offline version]offline version generated on 04-Aug-2010 21:08 UTC
Copyright © 2008 The Eclipse Foundation. All Rights Reserved


Views
Personal tools
package reference