Type
class TypeAvailable in flash, flash9, neko, js, php, cppThe haXe Reflection API enables you to retreive informations about any value, Classes and Enums at runtime.
static function createEmptyInstance<T>( cl : Class<T> ) : TSimilar to
Type.createInstance excepts that the constructor is not called. This enables you to create an instance without any side-effect.
static function createEnum<T>( e : Enum<T>, constr : String, ?params : Array<Dynamic> ) : TCreate an instance of an enum by using a constructor name and parameters.
static function createEnumIndex<T>( e : Enum<T>, index : Int, ?params : Array<Dynamic> ) : TCreate an instance of an enum by using a constructor index and parameters.
static function createInstance<T>( cl : Class<T>, args : Array<Dynamic> ) : TCreates an instance of the given class with the list of constructor arguments.
static function enumConstructor( e : Dynamic ) : StringAvailable in flash, flash9, neko, php, cppReturns the constructor of an enum
static inline function enumConstructor( e : Dynamic ) : StringAvailable in jsReturns the constructor of an enum
static function enumEq<T>( a : T, b : T ) : BoolRecursively compare two enums constructors and parameters.
static inline function enumIndex( e : Dynamic ) : IntReturns the index of the constructor of an enum
static function enumParameters( e : Dynamic ) : Array<Dynamic>Available in flash, flash9, neko, php, cppReturns the parameters of an enum
static inline function enumParameters( e : Dynamic ) : Array<Dynamic>Available in jsReturns the parameters of an enum
static function getClass<T>( o : T ) : Class<T>Returns the class of a value or null if this value is not a Class instance.
static function getClassFields( c : Class<Dynamic> ) : Array<String>Returns the list of a class static fields.
static function getClassName( c : Class<Dynamic> ) : StringReturns the complete name of a class.
static function getEnum( o : Dynamic ) : Enum<Dynamic>Returns the enum of a value or null if this value is not an Enum instance.
static function getEnumConstructs( e : Enum<Dynamic> ) : Array<String>Returns all the available constructor names for an enum.
static function getEnumName( e : Enum<Dynamic> ) : StringReturns the complete name of an enum.
static function getInstanceFields( c : Class<Dynamic> ) : Array<String>Returns the list of instance fields.
static function getSuperClass( c : Class<Dynamic> ) : Class<Dynamic>Returns the super-class of a class, or null if no super class.
static function resolveClass( name : String ) : Class<Dynamic>Evaluates a class from a name. The class must have been compiled to be accessible.
static function resolveEnum( name : String ) : Enum<Dynamic>Evaluates an enum from a name. The enum must have been compiled to be accessible.
static function typeof( v : Dynamic ) : ValueTypeReturns the runtime type of a value.
version #9036, modified 2010-08-14 17:13:19 by api