ewe.reflect
Class Constructor
java.lang.Object
ewe.reflect.MethodConstructor
ewe.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. |
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.
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()