|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbluej.extensions.BConstructor
A wrapper for a constructor of a BlueJ class. Behaviour is similar to reflection API.
| Method Summary | |
java.lang.Class[] |
getParameterTypes()
Returns the parameters of this constructor. |
boolean |
matches(java.lang.Class[] parameter)
Tests if this constructor matches the given signature. |
BObject |
newInstance(java.lang.Object[] initargs)
Creates a new instance of the object described by this constructor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public boolean matches(java.lang.Class[] parameter)
public java.lang.Class[] getParameterTypes()
public BObject newInstance(java.lang.Object[] initargs)
throws ProjectNotOpenException,
PackageNotFoundException,
InvocationArgumentException,
InvocationErrorException
ProjectNotOpenException - if the project to which this constructor belongs has been closed by the user.
PackageNotFoundException - if the package to which this constructor belongs has been deleted by the user.
InvocationArgumentException - if the initargs don't match the constructor's arguments.
InvocationErrorException - if an error occurs during the invocation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||