Provides information about the characteristics of a class or an interface.
These are the methods, accessors (getter/setter), variables and constants,
but also if the class is
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");
accessors:Array [read-write]Implementation
public function get accessors():Array
public function set accessors(value:Array):void
clazz:Class [read-write]Implementation
public function get clazz():Class
public function set clazz(value:Class):void
constants:Array [read-write]Implementation
public function get constants():Array
public function set constants(value:Array):void
fields:Array [read-only]Implementation
public function get fields():Array
fullName:String [read-write]Implementation
public function get fullName():String
public function set fullName(value:String):void
isDynamic:Boolean [read-write]Implementation
public function get isDynamic():Boolean
public function set isDynamic(value:Boolean):void
isFinal:Boolean [read-write]Implementation
public function get isFinal():Boolean
public function set isFinal(value:Boolean):void
isStatic:Boolean [read-write]Implementation
public function get isStatic():Boolean
public function set isStatic(value:Boolean):void
methods:Array [read-write]Implementation
public function get methods():Array
public function set methods(value:Array):void
name:String [read-write]Implementation
public function get name():String
public function set name(value:String):void
staticConstants:Array [read-write]Implementation
public function get staticConstants():Array
public function set staticConstants(value:Array):void
staticVariables:Array [read-write]Implementation
public function get staticVariables():Array
public function set staticVariables(value:Array):void
variables:Array [read-write]Implementation
public function get variables():Array
public function set variables(value:Array):void
public function Type()
Creates a new Type instance.
public static function forClass(clazz:Class):Type
Returns a Type object that describes the given class.
Parameters
| clazz:Class — the class from which to get a type description
|
Returns
public static function forInstance(instance:*):Type
Returns a Type object that describes the given instance.
Parameters
| instance:* — the instance from which to get a type description
|
Returns
public static function forName(name:String):Type
Returns a Type object that describes the given classname.
Parameters
| name:String — the classname from which to get a type description
|
Returns
public function getField(name:String):Field
Returns the Field object for the field in this type
with the given name.
Parameters
| name:String — the name of the field
|
Returns
public function getMethod(name:String):Method
Returns the Method object for the method in this type
with the given name.
Parameters
| name:String — the name of the method
|
Returns
public static const UNTYPED:Type
public static const VOID:Type
Prana Framework 0.5 - 2008