Package | org.flexunit.runners.model |
Class | public class TestClass |
Inheritance | TestClass ![]() |
TestClass
wraps a class that is to be executing, providing method
validation and annotation searching.
Property | Defined 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 |
Method | Defined 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 |
asClass | property |
asClass:Class
[read-only] Returns the underlying class.
public function get asClass():Class
klassInfo | property |
klassInfo:Klass
[read-only]
Returns a Klass
that was generated from the class provided to TestClass
public function get klassInfo():Klass
metadata | property |
metadata:Array
[read-only] Returns the metadata on this class.
public function get metadata():Array
name | property |
name:String
[read-only] Returns the class's name.
public function get name():String
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.
klass:Class — The Class to wrap.
|
getMetaDataFields | () | method |
public function getMetaDataFields(metaTag:String, static:Boolean = false):Array
Parameters
metaTag:String | |
static:Boolean (default = false )
|
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.
|
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.
ReturnsString |