Aztec® Programming Language
Version 1.1 Alpha 2

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

Download Aztec

Search        Contact Us

Wish I didn't know now...

What I didn't know then.

- Bob Seger

 

aztec.system.Method

public class Method from<Metadata>

Base

Metadata

Method

The Method class provides run-time metadata information related to a single Aztec method. There are two separate constructors provided to create a new Method object and useful methods to operate on the Method..

Method Methods

Method() Constructor for the Method class using a base method reference
Method() Constructor for the Method class based on the method that it is called from
IsValid() Returns true if this Method metadata item is valid
IsInstance() Returns true if this Method is an instance method
Module() Returns reference to the Module metadata that contains the method
Class() Returns reference to the Class metadata that contains the Method (null if a global method)
ReturnClass() Returns reference to the Class metadata for the return type of the Method
GetArgClasses() Returns an array of Class metadata items respresenting the argument list for the method

Derived Classes

See Also

 


Method()

public method Method(base method MethodReference)

Parameters

MethodReference

Method reference of the method used for this metadata

Return Value

None

Description

Constructor for the Method class. This implementation uses a method reference to indicate the method to use. If the method ref is not null, the IsValid() method will return true and false if it is null..

 

Method Class


Method()

public method Method()

Parameters

None

Return Value

None

Description

Constructor for the Method class. This implementation takes no arguments. The Method that contains the code that performs the call to this constructor will be used for this Method object. The IsValid() method will return true if it is called from within a method. If invoked from an initialization expression for a global or shared data item, the IsValid() method will return false.

 

Method Class


IsValid()

public virtual method<bool> IsValid()

Parameters

None

Return Value

True if Method is valid

Description

Virtual method which returns true if the underlying method is valid and false if not.

 

Method Class


IsInstance()

public method<bool> IsInstance()

Parameters

None

Return Value

True if Method is an instance method

Description

Method which returns true if the underlying method is valid and is an instance method of a class and false if not.

 

Method Class


Module()

public method<Module> Module()

Parameters

None

Return Value

Reference to Module that contains the method

Description

Method which returns a reference to the Module object that contains the underlying method.

 

Method Class


Class()

public method<Class> Class()

Parameters

None

Return Value

Reference to Class that contains the method

Description

Method which returns a reference to the Class object that contains the underlying method. It will return null if the method is global.

 

Method Class


ReturnClass()

public method<Class> ReturnClass()

Parameters

None

Return Value

Reference to Class object for the method return type

Description

Method which returns a reference to the Class object that contains the underlying method. It will return null if the method is global.

 

Method Class

 


GetArgClasses()

public method<Class[]> GetArgClasses()

Parameters

None

Return Value

Array of Class objects for the method arguments

Description

This method returns an array of Class metadata objects that correspond to the arguments for the method. It can be null.

 

Method Class

 

Copyright © 2010-2017

Aztec Development Group

All Rights Reserved

Download Aztec