Aztec® Programming Language
Version 1.1 Alpha 2

Copyright © 2010-2017, Aztec Development Group, All Rights Reserved

Download Aztec

Search        Contact Us

I hope my legs don't break...

Walking on the moon.

- Sting

 

aztec.system.Unit

public class Unit from<Metadata>

Base

Metadata

Unit

The Unit class provides run-time metadata information related to a particular Aztec unit. A unit represents the code in one or more modules that are all compiled together during a single compilation process. There are two separate constructors provided to create a new Unit object and useful methods to operate on the Unit.

Unit Methods

Unit() Constructor for the Unit class using a name
Unit() Constructor for the Unit class based on the unit that it is called from
IsValid() Returns true if this Unit metadata item is valid
GetModules() Returns an array of Module metadata items for the unit

Derived Classes

See Also

 


Unit()

public method Unit(string Name)

Parameters

Name

Name of the Aztec unit

Return Value

None

Description

Constructor for the Unit class. This implementation uses a unit name to find the specified Unit. If the unit name exists, the IsValid() method will return true and false if not.

 

Unit Class


Unit()

public method Unit()

Parameters

None

Return Value

None

Description

Constructor for the Unit class. This implementation takes no arguments. The Unit that contains the code that performs the call to this constructor will be used for this Unit object..

 

Unit Class


IsValid()

public virtual method<bool> IsValid()

Parameters

None

Return Value

True if Unit corresponds to a valid Aztec compilation unit

Description

Virtual method which returns true if the underlying unit is valid. If the constructor is called with a unit name that does not exist in this Aztec script/application, this method will return false.

 

Unit Class


GetModules()

public method<Module[]> GetModules()

Parameters

None

Return Value

Array of Module objects in this unit

Description

This method returns an array of Module metadata objects that are contained in this compilation unit.

 

Unit Class

 

Copyright © 2010-2017

Aztec Development Group

All Rights Reserved

Download Aztec