ewe.reflect
Class Constructor

java.lang.Object
  extended byewe.reflect.MethodConstructor
      extended byewe.reflect.Constructor
All Implemented Interfaces:
IMethod, Member

public class Constructor
extends MethodConstructor


Field Summary
 Throwable instantiationError
          If the method call newInstance() returns null, then this will be set to be the exception that caused the newInstance() call to fail.
 
Fields inherited from class ewe.reflect.MethodConstructor
_method_, _vclass_, declaringClass, methodName, methodSpecs, modifiers, reflect, wrapperType
 
Fields inherited from interface ewe.reflect.Member
DECLARED, PUBLIC
 
Method Summary
 String getName()
           
 Object newInstance(Wrapper[] params)
          Use the Constructor to create a new instance of the Object.
 Constructor toJavaConstructor()
           
 
Methods inherited from class ewe.reflect.MethodConstructor
getDeclaringClass, getExceptionTypes, getModifiers, getParameters, getParameterTypes, getReturnType, getSpecs, getType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode
 

Field Detail

instantiationError

public Throwable instantiationError
If the method call newInstance() returns null, then this will be set to be the exception that caused the newInstance() call to fail.

Method Detail

newInstance

public Object newInstance(Wrapper[] params)
Use the Constructor to create a new instance of the Object. Additional verbose

Parameters:
params - an array of parameters which must be of the correct length.
Returns:
The newly created Object. If this is not null then the call was successful and the instantiationError variable should be ignored. If it is null, then the instantiationError will be the exception that caused the failure.

getName

public String getName()
Specified by:
getName in interface Member
Overrides:
getName in class MethodConstructor

toJavaConstructor

public Constructor toJavaConstructor()