ConstructorInfo
| Kind of class: | class |
|---|---|
| Inherits from: | MethodInfo < BasicClass |
| Author: | Simon Wacker |
| Classpath: | org.as2lib.env.reflect.ConstructorInfo |
| File last modified: | Friday, 29 July 2005, 10:26:30 |
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.
Summary
Constructor
Instance properties
Instance properties inherited from MethodInfo
Class methods
Class methods inherited from MethodInfo
Instance methods
Instance methods inherited from MethodInfo
Instance methods inherited from BasicClass
Constructor
ConstructorInfo
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.
Parameters:
declaringClass:
the class that declares the
constructorconstructor :
(optional) the concrete constructor
Class properties
NAME
static NAME:String = "new"
(read,write)
The name of constructors.
Instance methods
getMethod
function getMethod (
Void) : Function
Returns 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.
Returns:
the concrete constructor
Overrides:
snapshot
function snapshot (
Void) : MethodInfo
Returns a ConstructorInfo instance that reflects the current state of
this constructor info.
this constructor info.
Returns:
a snapshot of this constructor info
Overrides: