Packageorg.flexunit.runners.model
Classpublic class TestClass
InheritanceTestClass Inheritance Object

The TestClass wraps a class that is to be executing, providing method validation and annotation searching.



Public Properties
 PropertyDefined By
  asClass : Class
[read-only] Returns the underlying class.
TestClass
  klassInfo : Klass
[read-only] Returns a Klass that was generated from the class provided to TestClass
TestClass
  metadata : Array
[read-only] Returns the metadata on this class.
TestClass
  name : String
[read-only] Returns the class's name.
TestClass
Public Methods
 MethodDefined By
  
TestClass(klass:Class)
Constructor.
TestClass
  
getMetaDataFields(metaTag:String, static:Boolean = false):Array
TestClass
  
getMetaDataMethods(metaTag:String):Array
Returns, efficiently, all the non-overridden methods in this class and its superclasses that contain the metadata tag metaTag.
TestClass
  
toString():String
Returns the name of the of the class.
TestClass
Property Detail
asClassproperty
asClass:Class  [read-only]

Returns the underlying class.


Implementation
    public function get asClass():Class
klassInfoproperty 
klassInfo:Klass  [read-only]

Returns a Klass that was generated from the class provided to TestClass


Implementation
    public function get klassInfo():Klass
metadataproperty 
metadata:Array  [read-only]

Returns the metadata on this class.


Implementation
    public function get metadata():Array
nameproperty 
name:String  [read-only]

Returns the class's name.


Implementation
    public function get name():String
Constructor Detail
TestClass()Constructor
public function TestClass(klass:Class)

Constructor. Creates a TestClass wrapping klass. Each time this constructor executes, the class is scanned for annotations, which can be an expensive process (we hope in future players it will not be.) Therefore, try to share instances of TestClass where possible.

Parameters
klass:Class — The Class to wrap.
Method Detail
getMetaDataFields()method
public function getMetaDataFields(metaTag:String, static:Boolean = false):Array

Parameters

metaTag:String
 
static:Boolean (default = false)

Returns
Array
getMetaDataMethods()method 
public function getMetaDataMethods(metaTag:String):Array

Returns, efficiently, all the non-overridden methods in this class and its superclasses that contain the metadata tag metaTag.

Parameters

metaTag:String — The tag used to locate the methods.

Returns
Array — all the non-overridden methods in this class and its superclasses that contain the metadata tag metaTag.
toString()method 
public function toString():String

Returns the name of the of the class.

Returns
String