Assembly
private class
system.reflection.Assembly
Description
Represents a Loom Assembly that has been loaded into the runtime. An Assembly contains a collection of Type's and each Type has an Assembly associated with it.
API overview
Constructor
Assembly
()
Functions
Public functions
| execute (): Void |
native Executes the Assembly by calling its main() function |
| getName (): String |
native Gets the name of the assembly |
| getReference ( index: Number ): Assembly |
native Gets a referenced assembly at given index |
| getReferenceCount (): Number |
native Gets the number of referenced assembly by the Assembly |
| getTypeAtIndex ( index: Number ): Type |
native Gets the Type associated with the specified index |
| getTypeCount (): Number |
native Gets the number of types associated with the Assembly |
| getUID (): String |
native Gets the unique identifier of the assembly |
| load ( path: String ): Assembly |
static native Loads an assembly from a file located at it's path returns it as an Assembly object |
| loadBytes ( bytes: ByteArray ): Assembly |
static native Loads an assembly from the provided bytes and returns it as an Assembly object |
| run (): Void | native |
Constructor
Assembly ()
Functions
execute (): Void
native
Executes the Assembly by calling its main() function. Will throw an error if the assembly does not have a main() function.
getFullTypeName
(): String
Inherited from Object
native
Gets the fully qualified type name of the Object. The fully qualified type name includes the package of the type.
Returns
| String | fully qualified type name of the Object. |
getReference ( index: Number ): Assembly
native
Gets a referenced assembly at given index.
Parameters
| index: Number |
Returns
| Assembly | A referenced assembly. |
getReferenceCount (): Number
native
Gets the number of referenced assembly by the Assembly.
Returns
| Number | Number of referenced assemblies. |
getType
(): Type
Inherited from Object
native
Gets the Type that describes the Object.
Returns
| Type | The Type that describes the object. |
getTypeAtIndex ( index: Number ): Type
native
Gets the Type associated with the specified index.
Parameters
| index: Number | Index of associated Type. |
Returns
| Type | Instance of the associated Type. |
getTypeCount (): Number
native
Gets the number of types associated with the Assembly.
Returns
| Number | Number of types in the assembly. |
getTypeName
(): String
Inherited from Object
native
Gets the type name of the Object.
Returns
| String | type name of the Object. |
getUID (): String
native
Gets the unique identifier of the assembly. This changes at every compilation so dependencies can be verified to be the same.
Returns
| String | Unique identifier of the assembly |
load ( path: String ): Assembly
static native
Loads an assembly from a file located at it's path returns it as an Assembly object.
Parameters
| path: String |
Returns
| Assembly | The new Assembly object. |