Packageorg.spicefactory.lib.reflect
Classpublic class Constructor
InheritanceConstructor Inheritance FunctionBase Inheritance Member Inheritance MetadataAware

Represents a Constructor.



Public Properties
 PropertyDefined by
 Inheritedname : String
The name of this member.
Member
 Inheritedowner : ClassInfo
The owner of this member.
Member
 Inheritedparameters : Array
The parameter types of the function represented by this instance.
FunctionBase
Public Methods
 MethodDefined by
 Inherited
Returns all metadata tags for this type in no particular order.
MetadataAware
 Inherited
getMetadata(type:Object):Array
Returns all metadata tags for the specified type for this element.
MetadataAware
  
newInstance(params:Array):*
Creates a new instance of the class this constructor belongs to.
Constructor
 Inherited
parametersFromXml(xml:XML, owner:ClassInfo):Array
[static]
FunctionBase
Protected Methods
 MethodDefined by
 Inherited
convertParameters(params:Array):void
Converts the specified parameters to the types expected for this function if necessary.
FunctionBase
Method detail
newInstance()method
public function newInstance(params:Array):*

Creates a new instance of the class this constructor belongs to.

Parameters
params:Array — the parameters to pass to the constructor

Returns
* — a new instance of the class this constructor belongs to

Throws
ConversionError — if one of the specified parameters is not of the required type and can not be converted
 
MethodInvocationError — if the specified number of parameters is not valid for this constructor
 
— any Error thrown by the constructor will not be catched by this method