Let's say i acquire the name of a class that i made as a String
. How can i Instantiate the class with the name contained in that string? I I know it will be derived from a certain parent class, but the actual class will vary.
相关问题
- FlashDevelop Haxe (Flash) debugger
- Can Haxe compiler convert any C# code to Haxe?
- Interfacing with Java Functions in Haxe
- Instantiation of ill-formed non-templated method o
- Explicit instantiation of function template specia
相关文章
- When is sqlite's manifest typing useful?
- When instantiating a (sub)Class, is there any diff
- Ensure that a Haxe program will run on all platfor
- Why do COM libraries used from C# 4.0 require such
- difference between server.createObject and createo
- Can I use decltype (or something similar) for expl
- MVVM model instantiation
- Exporting STL class from DLL - why is there no war
Few notes:
resolveClass()
takes the full path (packages included) of the classe you needcreateInstance()
takes as the second argument an array of values that are applied to the constructor. Those values must be in the exact number and must be passed even if they are optional (nulls are good in that case).