Inheritance diagram for java.lang.reflect.Constructor:
This class models a constructor. Information about the constructor can be accessed, and the constructor can be invoked dynamically.
Public Member Functions | |
boolean | equals (Object object) |
Compares the specified object to this Constructor and answer if they are equal. | |
Class | getDeclaringClass () |
Return the java.lang.Class associated with the class that defined this constructor. | |
Class[] | getExceptionTypes () |
Return an array of the java.lang.Class objects associated with the exceptions declared to be thrown by this constructor. | |
int | getModifiers () |
Return the modifiers for the modelled constructor. | |
String | getName () |
Return the name of the modelled constructor. | |
Class[] | getParameterTypes () |
Return an array of the java.lang.Class objects associated with the parameter types of this constructor. | |
int | hashCode () |
Answers an integer hash code for the receiver. | |
Object | newInstance (Object args[]) throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException |
Return a new instance of the declaring class, initialized by dynamically invoking the modelled constructor. | |
String | toString () |
Answers a string containing a concise, human-readable description of the receiver. |
|
Compares the specified object to this Constructor and answer if they are equal. The object must be an instance of Constructor with the same defining class and parameter types.
|
|
Return the java.lang.Class associated with the class that defined this constructor.
|
|
Return an array of the java.lang.Class objects associated with the exceptions declared to be thrown by this constructor. If the constructor was not declared to throw any exceptions, the array returned will be empty.
|
|
Return the modifiers for the modelled constructor. The Modifier class should be used to decode the result.
Reimplemented from java.lang.reflect.AccessibleObject. |
|
Return the name of the modelled constructor. This is the name of the declaring class.
|
|
Return an array of the java.lang.Class objects associated with the parameter types of this constructor. If the constructor was declared with no parameters, the array returned will be empty.
|
|
Answers an integer hash code for the receiver. Objects which are equal answer the same value for this method. The hash code for a Constructor is the hash code of the declaring class' name.
|
|
Return a new instance of the declaring class, initialized by dynamically invoking the modelled constructor.
This reproduces the effect of
|
|
Answers a string containing a concise, human-readable description of the receiver.
The format of the string is modifiers (if any) declaring class name '(' parameter types, separated by ',' ')' If the constructor throws exceptions, ' throws ' exception types, separated by ',' For example:
|