ConstructorInfo represents the constrcutor of a class.
The name of a constructor is always "new". This name can be obtained
through the constant NAME.
Constructors are also not static.
public function ConstructorInfo(declaringClass:ClassInfo, constructor:Function)
Constructs a new ConstructorInfo instance.
If constructor is not specified, what means undefined, it
will be resolved at run-time everytime requested.
declaringClass | the class that declares the constructor
|
constructor | (optional) the concrete constructor |
public function getMethod(Void):FunctionReturns the concrete constructor this instance represents.
If the concrete constructor was not specified on construction it will be
resolved at run-time by this method everytime asked for. The returned
constructor is thus always the current constructor of the declaring type.
Resolving the class's constructor at run-time does only work if the declaring
type returns a not- null package and a not- null name. If these
two are null or undefined the function returned by the
getType method of the declaring type is returned.
the concrete constructor
public function snapshot(Void):MethodInfoReturns a ConstructorInfo instance that reflects the current state of this constructor info.
a snapshot of this constructor info