Class com.sekati.reflect.Reflection

Description

Reflection allows class introspection for logging and identification purposes.

 Usage:
 	var loader:Baseloader = new Baseloader("init");
 	Reflection.getFullyQualifiedClassName(loader);	// returns: "com.sekati.load.BaseLoader"
 	ClasReflection.getClassName(loader);				// returns: "BaseLoader"
 	Reflection.getPackageName(loader);					// returns: "com.sekati.load"
 

Method Index

getClassName(), getFullyQualifiedClassName(), getPackageName()

Method Detail

getFullyQualifiedClassName

static public function getFullyQualifiedClassName(o:Object):String

Get the Fully Qualified Class Name Definition from a class instance.

Parameters

o(Object) instance object to identify.

Return

String - string representation of FQCN

 Usage:
 	Reflection.getFullyQualifiedClassName(myTest); // returns: "com.sekati.tests.MyTest"
 

getClassName

static public function getClassName(o:Object):String

Get the Class Name Definition from a class instance.

Parameters

o(Object) instance object to identify.

Return

String - string representation of CN

 Usage:
 	Reflection.getClassName(myTest); // returns: "MyTest"
 

getPackageName

static public function getPackageName(o:Object):String

Get the Class Package Definition from a class instance.

Parameters

o(Object) instance object to identify.

Return

String - string representation of CP

 Usage:
 	Reflection.getPackageName(myTest);	// returns: "com.sekati.tests"