| Package | org.as3commons.reflect |
| Class | public class Type |
| Inheritance | Type MetaDataContainer |
dynamic and final.
Note that information about an object cannot be retrieved by calling the
Type constructor. Instead use one of the following static
methods:
In case of an instance:
var type:Type = Type.forInstance(myInstance);
In case of a Class variable:
var type:Type = Type.forClass(MyClass);
In case of a classname:
var type:Type = Type.forName("MyClass");
| Property | Defined by | ||
|---|---|---|---|
| accessors : Array
An array of
Accessor instances
| Type | ||
| alias : String | Type | ||
| applicationDomain : ApplicationDomain
The ApplicationDomain which is able to retrieve the object definition for this type.
| Type | ||
| clazz : Class
The Class of the
Type
| Type | ||
| constants : Array
An array of
IMember instances that describe the constants of the Type
| Type | ||
| constructor : Constructor
A reference to a
Constructor instance that describes the constructor of the Type
| Type | ||
| extendsClasses : Array | Type | ||
| fields : Array [read-only]
An array of all the static constants, constants, static variables and variables of the
Type
| Type | ||
| fullName : String
The fully qualified name of the type, this includes the namespace
| Type | ||
| isDynamic : Boolean
True if the
Type is dynamic
| Type | ||
| isFinal : Boolean
True if the
Type is final
| Type | ||
| isInterface : Boolean
True if the
Type is an interface
| Type | ||
| isStatic : Boolean
True if the
Type is static
| Type | ||
![]() | metaData : Array
Returns an array of all metadata objects in this container.
| MetaDataContainer | |
| methods : Array
An array of
Method instances
| Type | ||
| name : String
The name of the type
| Type | ||
| properties : Array [read-only]
An array of Field containing all accessors and variables for the type.
| Type | ||
| staticConstants : Array
An array of
IMember instances that describe the static constants of the Type
| Type | ||
| staticVariables : Array
An array of
IMember instances that describe the static variables of the Type
| Type | ||
| variables : Array
An array of
IMember instances that describe the variables of the Type
| Type | ||
| Method | Defined by | ||
|---|---|---|---|
|
Type(applicationDomain:ApplicationDomain)
Creates a new
Type instance. | Type | ||
![]() |
addMetaData(metaData:MetaData):void
Adds a MetaData object to this container.
| MetaDataContainer | |
|
[static]
Returns a
Type object that describes the given class. | Type | ||
|
forInstance(instance:*, applicationDomain:ApplicationDomain = null):Type
[static]
Returns a
Type object that describes the given instance. | Type | ||
|
[static]
Returns a
Type object that describes the given classname. | Type | ||
|
Returns the
Field object for the field in this type
with the given name. | Type | ||
![]() |
getMetaData(key:String):Array
Returns the array of MetaData object that corresponds to the given key.
| MetaDataContainer | |
|
Returns the
Method object for the method in this type
with the given name. | Type | ||
|
[static]
| Type | ||
![]() |
hasMetaData(key:String):Boolean
Returns whether this object has meta data for the given key.
| MetaDataContainer | |
| Method | Defined by | ||
|---|---|---|---|
|
initType(applicationDomain:ApplicationDomain):void
Initializes the current
Type instance. | Type | ||
| Constant | Defined by | ||
|---|---|---|---|
| PRIVATE : Type
[static]
| Type | ||
| UNTYPED : Type
[static]
| Type | ||
| VOID : Type
[static]
| Type | ||
| accessors | property |
accessors:Array [read-write]
An array of Accessor instances
public function get accessors():Array
public function set accessors(value:Array):void
See also
| alias | property |
alias:String [read-write]Implementation
public function get alias():String
public function set alias(value:String):void
| applicationDomain | property |
applicationDomain:ApplicationDomain [read-write]
The ApplicationDomain which is able to retrieve the object definition for this type. The definition does not
necessarily have to be part of this ApplicationDomain, it could possibly be present in the parent domain as well.
public function get applicationDomain():ApplicationDomain
public function set applicationDomain(value:ApplicationDomain):void
| clazz | property |
clazz:Class [read-write]
The Class of the Type
public function get clazz():Class
public function set clazz(value:Class):void
| constants | property |
constants:Array [read-write]
An array of IMember instances that describe the constants of the Type
public function get constants():Array
public function set constants(value:Array):void
See also
| constructor | property |
public var constructor:Constructor
A reference to a Constructor instance that describes the constructor of the Type
See also
| extendsClasses | property |
extendsClasses:Array [read-write]Implementation
public function get extendsClasses():Array
public function set extendsClasses(value:Array):void
| fields | property |
fields:Array [read-only]
An array of all the static constants, constants, static variables and variables of the Type
public function get fields():Array
See also
| fullName | property |
fullName:String [read-write]The fully qualified name of the type, this includes the namespace
Implementation public function get fullName():String
public function set fullName(value:String):void
| isDynamic | property |
isDynamic:Boolean [read-write]
True if the Type is dynamic
public function get isDynamic():Boolean
public function set isDynamic(value:Boolean):void
| isFinal | property |
isFinal:Boolean [read-write]
True if the Type is final
public function get isFinal():Boolean
public function set isFinal(value:Boolean):void
| isInterface | property |
isInterface:Boolean [read-write]
True if the Type is an interface
public function get isInterface():Boolean
public function set isInterface(value:Boolean):void
| isStatic | property |
isStatic:Boolean [read-write]
True if the Type is static
public function get isStatic():Boolean
public function set isStatic(value:Boolean):void
| methods | property |
methods:Array [read-write]
An array of Method instances
public function get methods():Array
public function set methods(value:Array):void
See also
| name | property |
name:String [read-write]The name of the type
Implementation public function get name():String
public function set name(value:String):void
| properties | property |
properties:Array [read-only]An array of Field containing all accessors and variables for the type.
Implementation public function get properties():Array
See also
| staticConstants | property |
staticConstants:Array [read-write]
An array of IMember instances that describe the static constants of the Type
public function get staticConstants():Array
public function set staticConstants(value:Array):void
See also
| staticVariables | property |
staticVariables:Array [read-write]
An array of IMember instances that describe the static variables of the Type
public function get staticVariables():Array
public function set staticVariables(value:Array):void
See also
| variables | property |
variables:Array [read-write]
An array of IMember instances that describe the variables of the Type
public function get variables():Array
public function set variables(value:Array):void
See also
| Type | () | constructor |
public function Type(applicationDomain:ApplicationDomain)
Creates a new Type instance.
applicationDomain:ApplicationDomain |
| forClass | () | method |
public static function forClass(clazz:Class, applicationDomain:ApplicationDomain = null):Type
Returns a Type object that describes the given class.
clazz:Class — the class from which to get a type description
|
|
applicationDomain:ApplicationDomain (default = null) |
Type |
| forInstance | () | method |
public static function forInstance(instance:*, applicationDomain:ApplicationDomain = null):Type
Returns a Type object that describes the given instance.
instance:* — the instance from which to get a type description
|
|
applicationDomain:ApplicationDomain (default = null) |
Type |
| forName | () | method |
public static function forName(name:String, applicationDomain:ApplicationDomain = null):Type
Returns a Type object that describes the given classname.
name:String — the classname from which to get a type description
|
|
applicationDomain:ApplicationDomain (default = null) |
Type |
| getField | () | method |
public function getField(name:String):Field
Returns the Field object for the field in this type
with the given name.
name:String — the name of the field
|
Field |
| getMethod | () | method |
public function getMethod(name:String):Method
Returns the Method object for the method in this type
with the given name.
name:String — the name of the method
|
Method |
| getTypeProvider | () | method |
| initType | () | method |
protected function initType(applicationDomain:ApplicationDomain):void
Initializes the current Type instance.
applicationDomain:ApplicationDomain |
| PRIVATE | constant |
public static const PRIVATE:Type
| UNTYPED | constant |
public static const UNTYPED:Type
| VOID | constant |
public static const VOID:Type