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 - Module-Object.$instances

An array of instance objects managed by this module

Contents

Synopsis

 
«Mod».$instances

where «Mod» is a module object.

Description

The $instances property of a module object is an array of all Instance objects that have been created (via «Mod».create()) during configuration. This array does not contain any embedded instances. To get the list of all instance that are embedded in other objects, you can use «Mod».$objects.

Example

 
 
 
 
var LoggerBuf = xdc.module("xdc.runtime.LoggerBuf");
for (var i = o; i < LoggerBuf.$instances.length; i++) {
    print(LoggerBuf.$instances[i]);
}

See also

XDCscript - Module-Object.create Create a new Instance object managed by this unit
XDCscript - Module-Object.$objects An array of embedded instance objects managed by this module
[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