Class org.aswing.utils.Reflection

Description

Reflection Utils.

Method Index

getClass()

Method Detail

getClass

static public function getClass(fullname:String):Function

Return the class object by the specified class name.

Then you can use this way to create a new instance of this class:

     var classConstructor:Function = Reflection.getClass("your_class_name");
     var instance:YourClass = YourClass(new classObj());
 
Or call it's static method from this way:
     var classConstructor:Function = Reflection.getClass("your_class_name");
     classConstructor.itsStaticMethod(args);
 

Parameters

fullnamethe class's full name include package. For example "org.aswing.Component"

Return

the class object of the name