PureMVC Framework for haXe: API Documentation
Back |
Indexclass Type
The haXe Reflection API enables you to retreive informations about any value,
Classes and Enums at runtime.
- static function createEmptyInstance<T>(cl : Class<T>) : T
-
Similar to
Reflect.createInstance
excepts that the constructor is not called.
This enables you to create an instance without any side-effect.
- static function createInstance<T>(cl : Class<T>, args : Array<Dynamic>) : T
-
Creates an instance of the given class with the list of constructor arguments.
- static function enumConstructor(e : Dynamic) : String
-
Returns the constructor of an enum
- static function enumEq<T>(a : T, b : T) : Bool
-
Recursively compare two enums constructors and parameters.
- static function enumIndex(e : Dynamic) : Int
-
Returns the index of the constructor of an enum
- static function enumParameters(e : Dynamic) : Array<Dynamic>
-
Returns 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>) : String
-
Returns the complete name of a class.
- static function getEnum(o : Dynamic) : Enum
-
Returns the enum of a value or
null
if this value is not an Enum instance.
- static function getEnumConstructs(e : Enum) : Array<String>
-
Returns all the available constructor names for an enum.
- static function getEnumName(e : Enum) : String
-
Returns 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
-
Evaluates an enum from a name. The enum must have been compiled
to be accessible.
- static function toClass(t : Dynamic) : Class<Dynamic>
-
Converts a value to a Class or returns
null
if the value is not a Class.
- static function toEnum(t : Dynamic) : Enum
-
Converts a value to an Enum or returns
null
if the value is not an Enum.
- static function typeof(v : Dynamic) : ValueType
-
Returns the runtime type of a value.
Back |
Index