Packageorg.servebox.commons.utils
Classpublic class IntrospectionUtils

An intropsection utility class.



Public Methods
 MethodDefined by
  
objectInheritanceTreeContains(instance:Object, classOrInterfaceNames:Array):Boolean
[static] Indicates whether an instance has some classes on its inheritance tree.
IntrospectionUtils
Method detail
objectInheritanceTreeContains()method
public static function objectInheritanceTreeContains(instance:Object, classOrInterfaceNames:Array):Boolean

Indicates whether an instance has some classes on its inheritance tree.
Example :
...
var myComponent : UIComponent = getChildAt( i );
trace( "Inheriting : " + InstrospectionUtils.objectInheritanceTreeContains( myComponent, ["package::SomeClass", "package::ISomeInterface"] );

will output Inheriting : true because UIComponent extends DisplayObject.

Parameters
instance:Object
 
classOrInterfaceNames:Array

Returns
Boolean